Modify the "Cancel" button's behavior?
I would like to know if it is possible to customize the "Cancel" button's behavior in custom page?
Here is my idea:
Page custom CustomFunction1 CustomFunction1Leave
Page custom CustomFunction2 CustomFunction2Leave
Function CustomFunction1
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "CustomFunction1.ini"
!insertmacro MUI_INSTALLOPTIONS_SHOW_RETURN
Pop $R9
StrCmp $R9 "success" NEXT_BUTTON +1
StrCmp $R9 "cancel" CANCEL_BUTTON
NEXT_BUTTON:
;Some code here
CANCEL_BUTTON:
FunctionEnd
Function CustomFunction1Leave
;Some code here
FunctionEnd
Thanks for any help or comments. :)