Inno Setup-将密码页面移到欢迎页面(第一页)之前 [英] Inno Setup - Move the password page before the welcome page (first page)
问题描述
如果我使用:
[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).
推荐答案
您不能更改标准页面的顺序.您也不能在欢迎"页面之前创建自定义页面.
You cannot change order of the standard pages. Nor you can create a custom page before the "welcome" page.
您的选择是:
-
使用单独的自定义表单询问密码.
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.
只需将InitializeUninstall
替换为 InitializeSetup
:
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-将密码页面移到欢迎页面(第一页)之前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!