Inno设置 - 如何在欢迎页面上添加消息

时间:2013-04-17 08:16:32

标签: inno-setup

我可以在Inno设置欢迎页面上添加消息吗?我想要一些like this

2 个答案:

答案 0 :(得分:14)

您可以通过覆盖[Messages]部分的值来更改欢迎邮件的文字:

[Messages]
WelcomeLabel2=This will install [name/ver] on your computer.%n%nIt is recommended that you close all other applications and disable any anti virus before continuing.

如果您想更改样式(颜色,大小等),则需要在InitializeWizard()事件功能中单独创建和定位控件。

答案 1 :(得分:6)

@Deanna答案是正确答案。

现在,如果您还想更改字体颜色和格式,可以执行以下操作:

[Messages]
WelcomeLabel2=This will install [name/ver] on your computer.%n%nIt is recommended that you close all other applications and disable any anti virus before continuing.

[Code]
procedure InitializeWizard();
begin
  WizardForm.WelcomeLabel2.Font.Style := [fsBold]; //Bold
  WizardForm.WelcomeLabel2.Font.Color := clRed; // And red colour
end;