Is it possible to change the window title bar of your installer using Inno Setup?

前端 未结 6 953
日久生厌
日久生厌 2021-02-14 08:56

Is it possible to change the title bar of your installer using Inno Setup?

By default is:

AppName=My Program

and when you run the setup

6条回答
  •  有刺的猬
    2021-02-14 09:19

    If you want to change the caption of the main form, try this:

    [code]
    procedure CurPageChanged(CurPageID: Integer);
    begin
      if CurPageID = wpWelcome then
        WizardForm.Caption := 'Welcome to My Program';
    end;
    

    It, unfortunately, will not change the "Setup" caption on the taskbar. Since this is a delphi application, you would need access to the Application global variable to change this effortless, but this object is not exposed to pascal script, and I don't know any way to do it directly. I think you can follow the @satuon advice to change it using windows messages.

提交回复
热议问题