在 Inno Setup 中更改 WizardForm 页面上的标签文本

Changing label texts on WizardForm page in Inno Setup

我想更改(在代码中)安装程序 WizardForm 上某些标签的文本,这些标签未被 WizardForm.

公开

示例:

ReadyLabel2a=Click Install to continue with the installation, or click Back if you want to review or change any settings.

我不能做 WizardForm.ReadyLabel2a.Caption := 'BLAH'; 因为编译器抱怨未知标识符 ReadyLabel2a.

有办法吗?

谢谢

安装程序向导表单的所有组件都公开了。

标签是ReadyLabel,不是ReadyLabel2aReadyLabel2a 是消息的 ID。安装程序使用 ReadyLabel2aReadyLabel2b 作为 ReadyLabel,具体取决于安装配置。

WizardForm.ReadyLabel.Caption := 'BLAH';

TWizardForm class declaration


您可以在 Inno Setup source code

中找到消息在控件中的使用方式

如果您需要特定标准消息的安装程序特定文本,请使用 Messages section:

修改文本
[Messages]
ReadyLabel2a=Click Install to continue with the installation, or click Back if you want to review or change any settings.