Full screen background image in Inno Setup

后端 未结 1 696
抹茶落季
抹茶落季 2021-01-07 07:05

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

Like this picture below.

\"

相关标签:
1条回答
  • 2021-01-07 07:34

    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;
    

    0 讨论(0)
提交回复
热议问题