No 'Exit Setup' message

From ISXKB

(Difference between revisions)
Jump to: navigation, search
(Introduction)
Line 21: Line 21:
If the user now clicks or presses the Cancel butten the installation aborts immediately without the confirmation message box.
If the user now clicks or presses the Cancel butten the installation aborts immediately without the confirmation message box.
 +
 +
== Example script ==
 +
*[[Search for a file]]
== See also ==
== See also ==
-
[http://www.jrsoftware.org/ishelp/topic_scriptevents.htm Inno Setup's event functions]
+
*[[Search for a file]]
 +
*[http://www.jrsoftware.org/ishelp/topic_scriptevents.htm Inno Setup's event functions]
[[Category:Installation methods and alternatives]]
[[Category:Installation methods and alternatives]]

Revision as of 11:01, 5 June 2009

Contents

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.

Example script

See also

Personal tools
Ads: