[idd] installer: require Windows 10 1903 or newer

This commit is contained in:
Geoffrey McRae
2026-11-06 12:57:28 +11:00
parent fbf2607f4b
commit 432f4a0c9a

View File

@@ -25,6 +25,10 @@
!include "FileFunc.nsh"
!include "LogicLib.nsh"
!include "Sections.nsh"
!include "WinVer.nsh"
!define LGIDD_MIN_WINDOWS_RELEASE 1903
!define LGIDD_MIN_WINDOWS_BUILD 18362
;Settings
Name "Looking Glass (IDD)"
@@ -34,6 +38,7 @@ RequestExecutionLevel admin
ShowInstDetails "show"
ShowUninstDetails "show"
ManifestDPIAware true
ManifestSupportedOS all
!ifndef BUILD_32BIT
Target AMD64-Unicode
@@ -104,6 +109,14 @@ Function .onInit
Pop $R0
${IfNot} ${AtLeastBuild} ${LGIDD_MIN_WINDOWS_BUILD}
MessageBox MB_OK|MB_ICONSTOP \
"$(^Name) requires Windows 10 version ${LGIDD_MIN_WINDOWS_RELEASE} or newer." \
/SD IDOK
SetErrorLevel 1
Abort
${EndIf}
!ifdef IVSHMEM
Var /GlOBAL option_ivshmem
StrCpy $option_ivshmem 0