Inno Setup Skip “Select Components” page when /Typ

2019-04-14 05:22发布

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?

标签: inno-setup
1条回答
【Aperson】
2楼-- · 2019-04-14 05:53

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;
查看更多
登录 后发表回答