Inno Setup:如何在InitializeWizard过程中使用{app}

发布于 2024-10-05 00:35:43 字数 191 浏览 0 评论 0原文

如何访问 InitializeWizard 过程中的 {app} 变量?

当我使用 ExpandConstant('{app}'); 时,我收到下一条错误消息:

在初始化之前尝试扩展 {app} 常量

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

¢好甜 2024-10-12 00:35:43

找到答案了:)

原型:

function WizardDirValue: String;

描述:

返回向导的“选择目标位置”页面上编辑控件的当前内容。

ExpandConstant('{app}') 不同,如果在向导显示之后但在用户选择目录之前调用此函数,则不会失败。相反,它将返回默认目录名称。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文