Inno Setup Skip Select Features page if Type command line parameter is specified

I have an Inno install installer where I set the install type via command line, for example /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 the option to change the type. Can this be done?

+2


source to share


1 answer


Use ShouldSkipPage

the event function
to skip the Select Components page when a command line parameter is specified /TYPE

:



[Code]

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

      

+3


source







All Articles