Inno Setup: how to use {app} in the InitializeWizard procedure

How can I access the {app} variable in the InitializeWizard procedure?

When I use ExpandConstant('{app}'); I get the following error message:

"An attempt to expand the constant {app} was made before it was initialized"

+4
source share
1 answer

Found the answer :)

Prototype:

 function WizardDirValue: String; 

Description: Returns the current contents of the edit control on the Select Destination page of the wizard.

Unlike ExpandConstant('{app}') , this function will not fail if called after showing the wizard, but before the user selects the directory. Rather, it will return the default directory name.

+8
source

All Articles