4

我可以在 Inno Setup 欢迎页面上留言吗?我想要这样的东西

4

2 回答 2

15

您可以通过覆盖该[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()事件函数中单独创建和定位控件。

于 2013-04-17T09:20:03.067 回答
8

@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;
于 2015-06-22T09:49:28.373 回答