[英]In NSIS , how to detect Windows version for Win 10 and Windows 19
我已經通讀了 windows wiki 頁面 - https://nsis.sourceforge.io/Get_Windows_version並且我知道 GetWindowsVersion 插件僅限於 ZAEA23489CE3AA9B6406EBB28E0CDA44。 我如何確保檢查 Windows 10 的 windows 版本並贏得服務器 2019。
PS:我已經提到 - NSIS Detect Windows 版本,我看到這個線程有點過時了。
使用 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}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.