2

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?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
thecaptain0220
  • 2,098
  • 5
  • 30
  • 51
  • Do you want to skip the "Setup Type" page of an existing installer? Or do you want to modify your own installer in a way that when the type is specified on the command line, the "Setup Type" page is skipped? – Martin Prikryl Mar 01 '16 at 07:10

1 Answers1

3

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;
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992