Inno Setup 在指定 /Type 命令行参数时跳过 "Select Components" 页

Inno Setup Skip "Select Components" page when /Type command-line parameter is specified

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

指定/TYPE命令行参数时,使用ShouldSkipPage event function跳过"Select Components"页面:

[Code]

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