Inno Setup Skip “Select Components” page when /Typ

2019-04-14 05:56发布

问题:

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?

回答1:

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