]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
win installer: abort installation on unsupported version
authortobtoht <tob@featherwallet.org>
Sun, 18 Jun 2023 14:21:53 +0000 (16:21 +0200)
committertobtoht <tob@featherwallet.org>
Sun, 18 Jun 2023 15:06:20 +0000 (17:06 +0200)
contrib/installers/windows/setup.nsi.in

index 32a5dc681ed69ac491a7c446c23f015bd5bb4cf5..323c25f3ff254bcdc49764da29e9cb9eba076e6c 100644 (file)
@@ -23,6 +23,7 @@ Unicode true
 !include Sections.nsh
 !include MUI2.nsh
 !include x64.nsh
+!include WinVer.nsh
 
 # Variables
 Var StartMenuGroup
@@ -112,6 +113,10 @@ Function .onInit
       MessageBox MB_OK|MB_ICONSTOP "Cannot install 64-bit version on a 32-bit system."
       Abort
     ${EndIf}
+    ${If} ${AtMostWin8.1}
+      MessageBox MB_OK|MB_ICONSTOP "This version of Windows is not supported. Upgrade to Windows 10 or later."
+      Abort
+    ${EndIf}
 FunctionEnd
 
 # Uninstaller functions