Reputation: 135
How to give our setup a background full screen image in Inno Setup compiler.
Like this picture below.
Upvotes: 3
Views: 4997
Reputation: 202272
Do not do that. It's against Windows design guidelines.
Full screen support was dropped in Inno Setup 6.4:
https://jrsoftware.org/files/is6-whatsnew.htm#6.4.0
So the below no longer works.
Anyway, if you have to (and you are using an old version of Inno Setup), enable legacy full screen installer mode using the WindowVisible=yes
directive and then modify the (now visible) background window via MainForm
global variable of type TMainForm
.
[Setup]
WindowVisible=yes
[Files]
Source: "back.bmp"; Flags: dontcopy
[Code]
procedure InitializeWizard();
var
BackgroundImage: TBitmapImage;
begin
BackgroundImage := TBitmapImage.Create(MainForm);
BackgroundImage.Parent := MainForm;
BackgroundImage.SetBounds(0, 0, MainForm.ClientWidth, MainForm.ClientHeight);
BackgroundImage.Stretch := True;
ExtractTemporaryFile('back.bmp');
BackgroundImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\back.bmp'));
end;
Upvotes: 5