win installer: abort installation on unsupported version

This commit is contained in:
tobtoht 2023-06-18 16:21:53 +02:00
parent 425468b2bb
commit 89bd748956
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View 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