From d621920bebc9f78870ec71665617f38569a467f5 Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Thu, 9 May 2024 21:07:42 +0800 Subject: [PATCH] check whether nt in windows installer (#415) --- platform/windows/installer-scripts/utils.nsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/windows/installer-scripts/utils.nsh b/platform/windows/installer-scripts/utils.nsh index dc069620..39bd62c5 100644 --- a/platform/windows/installer-scripts/utils.nsh +++ b/platform/windows/installer-scripts/utils.nsh @@ -51,7 +51,8 @@ Var /GLOBAL sectionDepTemp !macroend !macro CheckOsBuild - ${IfNot} ${AtLeastBuild} ${REQUIRED_WINDOWS_BUILD} + ${IfNot} ${IsNT} + ${OrIfNot} ${AtLeastBuild} ${REQUIRED_WINDOWS_BUILD} MessageBox MB_OK|MB_ICONSTOP "$(ErrorWindowsBuildRequired)" Abort ${EndIf}