I have created an image that I want to appear over whole Welcome and Finished pages of the installer, with only the bottom buttons showing.
The Welcome wizard page should be like:
The Finished page like:
I'm getting
Please help! Thanks in advance😊
First, note that the Welcome page is disabled by default since Inno Setup 5.5.7. If you really want it, you have to enable it using DisableWelcomePage=no
.
To display images only on the pages, you need to do:
WizardBitmapImage
(Welcome) and WizardBitmapImage2
(Finished) over their respective parent pages.postinstall
entries in the [Run]
section, for the same reason.WizardStyle=classic
. For modern
style it needs to be adjusted.[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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With