Inno Setup跳过“选择组件"指定/Type命令行参数时的页面 [英] Inno Setup Skip "Select Components" page when /Type command-line parameter is specified

查看:100
本文介绍了Inno Setup跳过“选择组件"指定/Type命令行参数时的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Inno安装程序安装程序,其中通过/TYPE=full这样的命令行来设置安装类型.当我这样做时,将选择正确的类型.我想做的是将其更进一步,并禁用更改类型的选项.这可能吗?

I have an Inno setup installer where I am setting the setup type via the command line like so, /TYPE=full. When I do this the correct type is selected. What I would like to do is take it one step further and disable option to change the type. Is this possible to do?

推荐答案

使用 ShouldSkipPage事件函数在指定/TYPE命令行参数时跳过选择组件"页面:

Use the ShouldSkipPage event function to skip the "Select Components" page when the /TYPE command-line parameter is specified:

[Code]

function ShouldSkipPage(PageID: Integer): Boolean;
begin
  Result := (PageID = wpSelectComponents) and (ExpandConstant('{param:TYPE}') <> '');
end;

这篇关于Inno Setup跳过“选择组件"指定/Type命令行参数时的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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