No 'Exit Setup' message

From ISXKB

(Difference between revisions)
Jump to: navigation, search
(Suppressing the confirmation box)
(Introduction)
Line 1: Line 1:
== Introduction ==
== Introduction ==
-
When the user presses the Cancel button during a setup run installers created with Inno Setup show a message box to ask him whether he's really sure that he wants to abort.
+
When the user presses the Cancel button during a setup run, installers created with Inno Setup show a message box to ask whether he's really sure that he wants to abort.
[[Image:ExitSetup.gif]]
[[Image:ExitSetup.gif]]

Revision as of 10:38, 5 June 2009

Introduction

When the user presses the Cancel button during a setup run, installers created with Inno Setup show a message box to ask whether he's really sure that he wants to abort.

Image:ExitSetup.gif

For installers that only copy a few files or create a few registry keys or values this may look a little bit exaggerated.

Suppressing the confirmation box

A quick look into Inno Setup's event functions reveals a Pascal procedure that can be used to catch and to suppress this message: CancelButtonClick ().

[Code]

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

If the user now clicks or presses the Cancel butten the installation aborts immediately without the confirmation message box.

See also

Inno Setup's event functions

Personal tools
Ads: