Finish page: added XPUI_FINISHPAGE_CANCEL_ENABLE, which defaults to off. (Warning, default behavior change! - per MUI compat)
authorDan
Fri, 09 Oct 2009 16:27:44 -0400
changeset 18 0f79de3ac304
parent 17 26f838554c9e
child 19 6c9560a32dc7
Finish page: added XPUI_FINISHPAGE_CANCEL_ENABLE, which defaults to off. (Warning, default behavior change! - per MUI compat)
Contrib/ExperienceUI/XPUI.nsh
--- a/Contrib/ExperienceUI/XPUI.nsh	Mon Sep 07 20:33:58 2009 -0400
+++ b/Contrib/ExperienceUI/XPUI.nsh	Fri Oct 09 16:27:44 2009 -0400
@@ -2426,7 +2426,7 @@
     StrCmp $XPUI_ABORTED 1 0 +2
       Abort
     
-    ; SET THE XPUI LOCAL REBOOT FLAG
+    ; Set the ExUI local reboot flag
     StrCpy $XPUI_REBOOT 0
     
     !ifdef XPUI_${XPUI_UN}FINISHPAGE_REBOOT_FORCE
@@ -2502,7 +2502,11 @@
     !endif
     GetDlgItem $XPUI_TEMP1 $HWNDPARENT 2
     SendMessage $XPUI_TEMP1 0xC `` `STR:$(^CancelBtn)`
+    !ifdef XPUI_${XPUI_UN}FINISHPAGE_CANCEL_ENABLE
     EnableWindow $XPUI_TEMP1 1
+    !else
+    EnableWindow $XPUI_TEMP1 0
+    !endif
     GetDlgItem $XPUI_TEMP1 $HWNDPARENT 3
     !ifdef XPUI_${XPUI_UN}FINISHPAGE_NO_REINSTALL
       EnableWindow $XPUI_TEMP1 0
@@ -2677,6 +2681,7 @@
   !insertmacro XPUI_UNSET XPUI_UNFINISHPAGE_CHECKBOX_RUN
   !insertmacro XPUI_UNSET XPUI_UNFINISHPAGE_CHECKBOX_DOCS
   !insertmacro XPUI_UNSET XPUI_${XPUI_UN}FINISHPAGE_NOCLOSEBUTTON
+  !insertmacro XPUI_UNSET XPUI_${XPUI_UN}FINISHPAGE_CANCEL_ENABLE
   
   !undef XPUI_${XPUI_UN}FINISHPAGE_CAPTION
   !undef XPUI_${XPUI_UN}FINISHPAGE_TITLE