在 NSIS 中,如何检测 Win 10 和 Windows 19 的 Windows 版本
In NSIS , how to detect Windows version for Win 10 and Windows 19
我已经通读了 windows wiki 页面 - https://nsis.sourceforge.io/Get_Windows_version 并且我知道 GetWindowsVersion 插件仅限于 Windows 8.1。我如何确保检查 Windows 10 的 windows 版本并赢得服务器 2019.
PS:我已经提到了 - NSIS Detect Windows Version 我发现这个帖子有点过时了。
使用WinVer.nsh
!include WinVer.nsh
Function .onInit
${IfNot} ${AtLeastWin10}
MessageBox mb_iconStop "Windows 10 blah blah"
Abort
${EndIf}
FunctionEnd
要求普通 Windows 10 但特定服务器版本相当奇怪,但如果您必须:
${If} ${IsServerOS}
${AndIf} ${AtLeastWaaS} 1809
...
${EndIf}
我已经通读了 windows wiki 页面 - https://nsis.sourceforge.io/Get_Windows_version 并且我知道 GetWindowsVersion 插件仅限于 Windows 8.1。我如何确保检查 Windows 10 的 windows 版本并赢得服务器 2019.
PS:我已经提到了 - NSIS Detect Windows Version 我发现这个帖子有点过时了。
使用WinVer.nsh
!include WinVer.nsh
Function .onInit
${IfNot} ${AtLeastWin10}
MessageBox mb_iconStop "Windows 10 blah blah"
Abort
${EndIf}
FunctionEnd
要求普通 Windows 10 但特定服务器版本相当奇怪,但如果您必须:
${If} ${IsServerOS}
${AndIf} ${AtLeastWaaS} 1809
...
${EndIf}