Cancel installation without confirmation
I have MUI_ABORTWARNING defined, but on a custom page I've written I want the Cancel button to close the installer without first asking for confirmation under certain circumstances. How can I do that?
6 posts
I found the MUI_TEXT_ABORTWARNING text in the language files shipped with nsis and just copied it to my own language file for the different languages I support.Function customOnUserAbort
StrCmp $PreReqOK "false" NoCancelAbort
MessageBox MB_YESNO|MB_ICONEXCLAMATION "$(ABORT_WARNING)" IDYES NoCancelAbort
Abort ; causes installer to not quit.
NoCancelAbort:
FunctionEnd