Inno Setup-将密码页面移到欢迎页面(第一页)之前 [英] Inno Setup - Move the password page before the welcome page (first page)

查看:216
本文介绍了Inno Setup-将密码页面移到欢迎页面(第一页)之前的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用:

[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.

您可以使用与 @vicsar的答案相同的代码stackoverflow.com/q/2386354/850848>使用Inno Setup进行密码保护的卸载.实际上使用了

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屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆