Inno Setup:如何在InitializeWizard过程中使用{app} [英] Inno Setup: how to use {app} in InitializeWizard Procedure

查看:271
本文介绍了Inno Setup:如何在InitializeWizard过程中使用{app}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

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

在初始化{app}常量之前,曾尝试对其进行扩展

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

推荐答案

找到了答案:)

原型:

function WizardDirValue: String;

说明:

在向导的选择目标位置"页面上返回编辑控件的当前内容.

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

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

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.

这篇关于Inno Setup:如何在InitializeWizard过程中使用{app}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆