Skip to content
Browse files

Correct Windows installer to require XP SP3 or newer operating system.

  • Loading branch information...
1 parent 4eb8f7c commit 293c49e9fc2b0407a1d0d8a99eed47d42b32af20 David Register committed
Showing with 13 additions and 4 deletions.
  1. +13 −4 NSIS.template.in
View
17 NSIS.template.in
@@ -934,10 +934,16 @@ SectionEnd
;##################################################################################################
;# .onInit Function
Function .onInit
- ;# Check if Windows version is at least NT (not Win 98 or older)
- ${IfNot} ${IsNT}
+ ;# Check if Windows version is at least XP (not Win 98, Win 2000 or older)
+ ${IfNot} ${AtLeastWinXP}
MessageBox MB_OK|MB_ICONEXCLAMATION "$(Installer_Unsupported_Windows_Version)"
Abort
+ ${Else}
+ ${If} ${IsWinXP}
+ ${AndIf} ${AtMostServicePack} 2
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(Installer_Unsupported_XP_SP_Version)"
+ Abort
+ ${EndIf}
${EndIf}
;Prevent multiple instances of the installer
@@ -4269,7 +4275,10 @@ Var explArrCount
LangString Uninstaller ${LANG_ENGLISH} "uninstaller"
;Installer running on unsupported version of Windows
- LangString Installer_Unsupported_Windows_Version ${LANG_ENGLISH} "Your Windows version is not supported (it's too old)!$\r$\nYou need at least Windows NT/2000."
+ LangString Installer_Unsupported_Windows_Version ${LANG_ENGLISH} "Your Windows version is not supported (it's too old)!$\r$\nYou need at least Windows XP SP3."
+
+ ;Installer running on Windows XP without SP3
+ LangString Installer_Unsupported_XP_SP_Version ${LANG_ENGLISH} "Your Windows XP Service Pack version is not supported (it's too old)!$\r$\nYou need at least Windows XP SP3."
;Installer already running
LangString Installer_Running ${LANG_ENGLISH} "The installer is already running."
@@ -4563,4 +4572,4 @@ Var explArrCount
LangString ^NameDA ${LANG_ENGLISH} "@CPACK_PACKAGE_NAME@ Version @CPACK_PACKAGE_VERSION@"
LangString Installer ${LANG_ENGLISH} "Installer"
-;#EOF
+;#EOF

0 comments on commit 293c49e

Please sign in to comment.
Something went wrong with that request. Please try again.