From 1f116b5f3d8ebbb4d1ea5eee1f5e71999db34622 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 13 Apr 2007 20:30:59 +0000 Subject: [PATCH] implemented RFE #1143843 - Ability to change default reboot behavior added MUI_FINISHPAGE_REBOOTLATER_DEFAULT git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5069 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI/Readme.html | 2 ++ Contrib/Modern UI/System.nsh | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index 5ba8fd0b..c90463f9 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -795,6 +795,8 @@ Text to display next to the 'Reboot now' option button.

MUI_FINISHPAGE_TEXT_REBOOTLATER text
Text to display next to the 'Reboot later' option button.

+

MUI_FINISHPAGE_REBOOTLATER_DEFAULT
+Sets the 'Reboot later' option as the default option.

MUI_FINISHPAGE_RUN exe_file
Application which the user can select to run using a checkbox. You diff --git a/Contrib/Modern UI/System.nsh b/Contrib/Modern UI/System.nsh index a82c4fa9..3e40cc58 100644 --- a/Contrib/Modern UI/System.nsh +++ b/Contrib/Modern UI/System.nsh @@ -1012,6 +1012,7 @@ Var /GLOBAL MUI_TEMP2 !insertmacro MUI_UNSET MUI_FINISHPAGE_TEXT_REBOOT !insertmacro MUI_UNSET MUI_FINISHPAGE_TEXT_REBOOTNOW !insertmacro MUI_UNSET MUI_FINISHPAGE_TEXT_REBOOTLATER + !insertmacro MUI_UNSET MUI_FINISHPAGE_REBOOTLATER_DEFAULT !insertmacro MUI_UNSET MUI_FINISHPAGE_RUN !insertmacro MUI_UNSET MUI_FINISHPAGE_RUN_TEXT !insertmacro MUI_UNSET MUI_FINISHPAGE_RUN_PARAMETERS @@ -1515,7 +1516,6 @@ Var /GLOBAL MUI_TEMP2 !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Bottom" "140" !endif !endif - !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" "1" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 5" "Type" "RadioButton" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 5" "Text" "${MUI_FINISHPAGE_TEXT_REBOOTLATER}" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 5" "Left" "120" @@ -1527,6 +1527,11 @@ Var /GLOBAL MUI_TEMP2 !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 5" "Top" "110" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 5" "Bottom" "120" !endif + !ifdef MUI_FINISHPAGE_REBOOTLATER_DEFAULT + !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 5" "State" "1" + !else + !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" "1" + !endif Goto mui.finish_load