答案 0 :(得分:5)
首先请注意,默认情况下,“{3}}”会禁用“欢迎”页面。如果您真的需要它,则必须使用Inno Setup 5.5.7启用它。
要仅在页面上显示图像,您需要执行以下操作:
WizardBitmapImage
(欢迎)和WizardBitmapImage2
(已完成)。postinstall
部分中没有[Run]
个条目。[Setup]
DisableWelcomePage=no
WizardImageFile=godfather.bmp
[Code]
procedure InitializeWizard();
begin
{ Welcome page }
{ Hide the labels }
WizardForm.WelcomeLabel1.Visible := False;
WizardForm.WelcomeLabel2.Visible := False;
{ Stretch image over whole page }
WizardForm.WizardBitmapImage.Width := WizardForm.WizardBitmapImage.Parent.Width;
{ Finished page }
{ Hide the labels }
WizardForm.FinishedLabel.Visible := False;
WizardForm.FinishedHeadingLabel.Visible := False;
{ Stretch image over whole page }
WizardForm.WizardBitmapImage2.Width := WizardForm.WizardBitmapImage2.Parent.Width;
end;