From 3a1bef6516b1f8ed56f79698eec9c1f1c3144db6 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Wed, 15 Apr 2009 17:23:50 +0000 Subject: [PATCH] - NSIS installer script updated and improved (NSIS updated to version 2.44) --- bochs/build/win32/nsis/bochs.nsi.in | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/bochs/build/win32/nsis/bochs.nsi.in b/bochs/build/win32/nsis/bochs.nsi.in index a6659a34c..bc54e3d20 100644 --- a/bochs/build/win32/nsis/bochs.nsi.in +++ b/bochs/build/win32/nsis/bochs.nsi.in @@ -1,5 +1,5 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; $Id: bochs.nsi.in,v 1.15 2007-09-28 17:58:48 vruppert Exp $ +; $Id: bochs.nsi.in,v 1.16 2009-04-15 17:23:50 vruppert Exp $ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Setup Script for NSIS Installer @@ -8,7 +8,7 @@ ; ; Based on Example Script by Joost Verburg ; also original BOCHS script by Robert (segra) -; updated for NSIS 2.12 by Volker Ruppert +; updated for NSIS 2.44 by Volker Ruppert ; ;--------------------- ;Include Modern UI @@ -33,7 +33,7 @@ ;-------------------------------- - ;General +;General Name "${NAME}" OutFile Bochs-${VERSION}.exe SetOverwrite on @@ -46,6 +46,9 @@ InstallDir $PROGRAMFILES\Bochs-${VERSION} InstallDirRegKey HKLM "Software\${NAME}" "" + ;Request application privileges for Windows Vista + RequestExecutionLevel admin + ;-------------------------------- ;Interface Settings @@ -218,17 +221,17 @@ SectionEnd Function .onInstSuccess MessageBox MB_YESNO|MB_ICONQUESTION \ - "Would you like to see a list of changes?" \ - IDNO NoChanges - ExecShell open '$INSTDIR\CHANGES.TXT' + "Would you like to see a list of changes?" \ + IDNO NoChanges + ExecWait 'notepad.exe $INSTDIR\CHANGES.TXT' NoChanges: MessageBox MB_YESNO|MB_ICONQUESTION \ - "Setup has completed. Read readme now?" \ + "Setup has completed. Show README now?" \ IDNO NoReadme - ExecShell open '$INSTDIR\readme.txt' + ExecWait 'notepad.exe $INSTDIR\README.txt' NoReadme: - DetailPrint "Thank you for installing Bochs, think inside the bochs." + MessageBox MB_OK "Thank you for installing Bochs, think inside the bochs." FunctionEnd ;--------------------------------