diff options
author | Tank_Master <tank.master@phoenixviewer.com> | 2014-03-10 12:13:48 -0700 |
---|---|---|
committer | Tank_Master <tank.master@phoenixviewer.com> | 2014-03-10 12:13:48 -0700 |
commit | 65a47d388c587199d28176fa8ca87260ede47c1d (patch) | |
tree | 7b5c027c5fe061e1b03224dbe49ad9b6b65c177f /indra/newview | |
parent | 328f64b4b9b870661a6d0bb8947dc1ff410ca0f8 (diff) |
Improve Windows 32bit installer logic for blocking old OSs, add XP x64 detection as well
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/installers/windows/installer_template.nsi | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/indra/newview/installers/windows/installer_template.nsi b/indra/newview/installers/windows/installer_template.nsi index fefec31df3..77a23ac26c 100755 --- a/indra/newview/installers/windows/installer_template.nsi +++ b/indra/newview/installers/windows/installer_template.nsi @@ -116,7 +116,8 @@ Var DO_UNINSTALL_V2 ; If non-null, path to a previous Viewer 2 installation !include "FileFunc.nsh" ; For GetParameters, GetOptions
!insertmacro GetParameters
!insertmacro GetOptions
-!include WinVer.nsh ; for OS and SP detection
+!include WinVer.nsh ; For OS and SP detection +!include x64.nsh ; For 64bit OS detection
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; After install completes, launch app
@@ -154,16 +155,33 @@ Function dirPre FunctionEnd
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-; Make sure we are not on a verion of windows older than XP SP2
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-Function CheckWindowsVersion
- ${IfNot} ${AtLeastWin2000}
- ${OrIf} ${IsWinXP}
- ${AndIfNot} ${AtLeastServicePack} 1
- ${OrIf} ${IsWin2003}
- ${AndIfNot} ${AtLeastServicePack} 1
- MessageBox MB_OK $(CheckWindowsVersionMB)
+; Make sure this computer meets the minimum system requirements. +; Currently: Windows 32bit XP SP3, 64bit XP SP2 and Server 2003 SP2 +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +Function CheckWindowsVersion + ${If} ${AtMostWin2000}
+ MessageBox MB_OK $(CheckWindowsVersionMB) + Quit
+ ${EndIf} + + ${If} ${IsWinXP} + ${AndIfNot} ${RunningX64} + ${AndIfNot} ${IsServicePack} 3
+ MessageBox MB_OK $(CheckWindowsVersionMB) + Quit
+ ${EndIf} + + ${If} ${IsWinXP} + ${AndIf} ${RunningX64} + ${AndIfNot} ${IsServicePack} 2
+ MessageBox MB_OK $(CheckWindowsVersionMB) Quit
+ ${EndIf} + + ${If} ${IsWin2003} + ${AndIfNot} ${IsServicePack} 2 + MessageBox MB_OK $(CheckWindowsVersionMB) + Quit ${EndIf}
FunctionEnd
@@ -784,7 +802,7 @@ SectionEnd ; end of uninstall section ;; entry to the language ID selector below
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Function .onInit
-Call CheckWindowsVersion ; Don't install if on Windows XP SP1 or older (do to XP x64 only having SP2 and no SP3)
+Call CheckWindowsVersion ; Don't install On unsupported systems
Push $0
${GetParameters} $COMMANDLINE ; get our command line
|