Archive: how to cancel installation cancelation?


how to cancel installation cancelation?
If user pushes cancel he will see a messagebox containing text "are you sure?" if he presses 'yes' evereything ok, but if he presses 'No' it leaves anyway. I've already tried use goto to avoid cancelation, but it didn't help.

So here is how i'm cathing Cancel
-----
Pop $0
${If} $0 == cancel
MessageBox MB_YESNO|MB_ICONQUESTION 'Are you sure that youw want to cancel installation?' IDNO nocancel
ExecWait '...' $1
Quit
${EndIf}
nocancel:
-----


For classic UI:

Function .onUserAbort
MessageBox MB_YESNO "Abort install?" IDYES NoCancelAbort
Abort ; causes installer to not quit.
NoCancelAbort:
FunctionEnd


For modern UI just
!define MUI_ABORTWARNING