开发者

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

开发者 https://www.devze.com 2023-01-28 16:56 出处:网络
How ca开发者_开发百科n I gain access to the {app} variable in the InitializeWizard procedure ?

How ca开发者_开发百科n 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号