check whether nt in windows installer (#415)

This commit is contained in:
Cyano Hao 2024-05-09 21:07:42 +08:00 committed by GitHub
parent 2fc9b51053
commit d621920beb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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}