From 277f4d161705878dfb708bfbc3ff124cd97303a7 Mon Sep 17 00:00:00 2001 From: joostverburg Date: Fri, 15 Nov 2002 17:27:28 +0000 Subject: [PATCH] fix git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1738 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI/System.nsh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Contrib/Modern UI/System.nsh b/Contrib/Modern UI/System.nsh index 9fc93d67..3f87135e 100644 --- a/Contrib/Modern UI/System.nsh +++ b/Contrib/Modern UI/System.nsh @@ -64,7 +64,9 @@ !endif !ifdef MUI_FINISHPAGE - AutoCloseWindow true + !ifndef MUI_FINISHPAGE_NOAUTOCLOSE + AutoCloseWindow true + !endif !endif XPStyle On @@ -591,7 +593,7 @@ !endif !insertmacro MUI_FUNCTIONS_INSTFILESPAGE SetInstFiles - + !ifdef MUI_FINISHPAGE !insertmacro MUI_FUNCTIONS_FINISHPAGE SetFinish !endif @@ -840,8 +842,6 @@ !endif - !ifdef MUI_FINISHPAGE_RUN - show: !insertmacro MUI_INSTALLOPTIONS_SHOW @@ -866,10 +866,14 @@ noreboot_end: - !insertmacro MUI_INSTALLOPTIONS_READ ${MUI_TEMP1} "ioWizard.ini" "Field 4" "State" + !ifdef MUI_FINISHPAGE_RUN + + !insertmacro MUI_INSTALLOPTIONS_READ ${MUI_TEMP1} "ioWizard.ini" "Field 4" "State" - StrCmp ${MUI_TEMP1} "1" "" +2 - Exec '"${MUI_FINISHPAGE_RUN}"' + StrCmp ${MUI_TEMP1} "1" "" +2 + Exec '"${MUI_FINISHPAGE_RUN}"' + + !endif done: