Inno Setup - Move the password page before the wel

2019-04-16 14:41发布

问题:

If I use:

[setup]
Password=mypass

The password page is after the welcome page and the license page.

How to move the password page before the welcome page? (at first).

回答1:

You cannot change order of the standard pages. Nor you can create a custom page before the "welcome" page.

Your options are:

  • Ask for the password using a separate custom form.

    You can use the same code as @vicsar's answer to the Password protected uninstallation using Inno Setup. Which actually uses a code from the Require an uninstallation password article on the ISXKB.

    Just replace the InitializeUninstall with the InitializeSetup:

    function InitializeSetup(): Boolean;
    begin
      Result := AskPassword();
    end;
    
  • Disable the "welcome" page and create a custom welcome-like page after the "password" page.




标签: inno-setup