In Inno Setup below is the code used to detect the Next button events,
function NextButtonClick(CurPageID: Integer): Boolean;
begin
case CurPageID of
wpLicense:
begin
//
end;
wpSelectDir:
begin
//
end;
wpSelectComponents:
begin
//
end;
wpReady:
begin
//
end;
wpFinished:
begin
//
end;
else
begin
///
end;
end;
end;
There is custom page in place that will be shown after the installation is completed and before the finish dialog. At wpSelectDir or wpSelectComponents how can you make the installer go to this custom page without installing, when the user chooses so?