Use the constant {app} . The link describes this as:
The application directory that the user selects on the Select Destination Location page of the wizard. For example: if you used {app} \ MYPROG.EXE to write, and the user selected "C: \ MYPROG" as the application directory, the installation program will transfer it to "C: \ MyProg \ MYPROG.EXE".
Optionally, you can use the WizardDirValue function. It is described as:
Gets the current contents of the edit control in the Select Page of the destination of the wizard.
Unlike ExpandConstant ('{app}'), this function will not work if called after the wizard shows, but before the user selects the directory. Rather, it will return the default directory name.
TLama source share