From 66920db9d8a22c105373680de1a96c583e7a428c Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sun, 25 Nov 2012 20:27:27 +0100 Subject: [PATCH] Improved installer operating system check to include Windows XP x64 Edition. --- etc/NSIS/setup.nsi | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/etc/NSIS/setup.nsi b/etc/NSIS/setup.nsi index 9adea30c..288be2a6 100644 --- a/etc/NSIS/setup.nsi +++ b/etc/NSIS/setup.nsi @@ -291,17 +291,28 @@ Function .onInit Quit ${EndIf} - # If on Windows XP, is Service Pack 3 installed? + # If on Windows XP, is the required Service Pack installed? ${If} ${IsWinXP} - ${AndIf} ${AtMostServicePack} 2 - ${AndIfNot} ${RunningX64} - MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires Windows XP with Service Pack 3 installed.$\nWindows XP *without* Service Pack 3 reached end-of-life on 2010-07-13.$\nCurrent Windows XP (Service Pack 3) will be supported until 2014-04-08.$\n$\nPlease install Service Pack 3 now or just run Windows Update!" - ${If} ${Cmd} `MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 3 for Windows XP now?" IDYES` - ExecShell "open" "http://www.microsoft.com/en-us/download/details.aspx?id=24" - ${Else} - ExecShell "open" "http://windowsupdate.microsoft.com/" + ${IfNot} ${RunningX64} # Windows XP 32-Bit, requires Service Pack 3 + ${AndIf} ${AtMostServicePack} 2 + MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires Windows XP with Service Pack 3 installed.$\nWindows XP *without* Service Pack 3 reached end-of-life on 2010-07-13.$\nCurrent Windows XP (Service Pack 3) will be supported until 2014-04-08.$\n$\nPlease install Service Pack 3 now or just run Windows Update!" + ${If} ${Cmd} `MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 3 for Windows XP now?" IDYES` + ExecShell "open" "http://www.microsoft.com/en-us/download/details.aspx?id=24" + ${Else} + ExecShell "open" "http://windowsupdate.microsoft.com/" + ${EndIf} + Quit + ${EndIf} + ${If} ${RunningX64} # Windows XP 64-Bit, requires Service Pack 2 + ${AndIf} ${AtMostServicePack} 1 + MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires Windows XP x64 Edition with Service Pack 2 installed.$\nWindows XP x64 Edition *without* Service Pack 2 reached end-of-life on 2009-04-14.$\nCurrent Windows XP x64 Edition (Service Pack 2) will be supported until 2014-04-08.$\n$\nPlease install Service Pack 2 now or just run Windows Update!" + ${If} ${Cmd} `MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 2 for Windows XP x64 Edition now?" IDYES` + ExecShell "open" "http://www.microsoft.com/en-us/download/details.aspx?id=17791" + ${Else} + ExecShell "open" "http://windowsupdate.microsoft.com/" + ${EndIf} + Quit ${EndIf} - Quit ${EndIf} ; -------- -- 2.11.4.GIT