lostprophet
lostprophet

Reputation: 31

Inno Setup: Exiting when clicking on Cancel without confirmation

If a the user clicks on "Cancel", I want the installer to stop and exit, WITHOUT asking I want to exit or not.

Can this be done somehow? Any help would be greatly appreciated.

Upvotes: 3

Views: 2857

Answers (1)

Andreas Rejbrand
Andreas Rejbrand

Reputation: 108929

This is very easy. Just add

[Code]

procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
  Cancel := true;
  Confirm := false;
end;

to your ISS script.

Upvotes: 8

Related Questions