Full screen background image in Inno Setup

2019-02-16 03:05发布

How to give our setup a background full screen image in Inno Setup compiler.

Like this picture below.

enter image description here

标签: inno-setup
1条回答
一夜七次
2楼-- · 2019-02-16 03:26

Do not do that. It's against Windows design guidelines.


Anyway, if you have to, 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;

enter image description here


For a slightly different implementation, see Background image during the installation on the ISXKB.

查看更多
登录 后发表回答