Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup: how to use {app} in InitializeWizard Procedure

Tags:

inno-setup

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

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

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

like image 898
thedev Avatar asked Nov 30 '10 13:11

thedev


1 Answers

Found the answer :)

Prototype:

function WizardDirValue: String;

Description:

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

Unlike ExpandConstant('{app}'), this function will not fail if called after the wizard is shown but prior to the user selecting a directory. Rather, it will return the default directory name.

like image 166
thedev Avatar answered Nov 10 '22 18:11

thedev