Contrib/ExperienceUI/XPUI.nsh
changeset 18 0f79de3ac304
parent 15 d3e8fdadd6d6
child 20 0e4433768c8e
--- 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