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

2020-03-22 04:43发布

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

标签: inno-setup
1条回答
Rolldiameter
2楼-- · 2020-03-22 05:15

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.

查看更多
登录 后发表回答