Skip to content
⌘ NSIS Forum Archive

${If} ${IsWin11}

4 posts

niwrad777#

${If} ${IsWin11}

Hello,

Are there plans to support Windows 11 with winver.nsh?
The following code doesn't work for me, but I need it.🙁

${If} ${IsWin11}
${EndIf} 
Anders#
Windows 11 still reports its real version as 10.0.... so you have to check the build number:

${If} ${AtLeastWaaS} "Windows 11"

or

${If} ${AtLeastWaaS} 22000
niwrad777#
Originally Posted by jooseng View Post
You can get an updated version here: https://github.com/kichik/nsis
[ATTACH]n4633171[/ATTACH]
The updated version does not include that specific feature. 🙁

Originally Posted by Anders View Post
Windows 11 still reports its real version as 10.0.... so you have to check the build number:

${If} ${AtLeastWaaS} "Windows 11"

or

${If} ${AtLeastWaaS} 22000
Thanks for the help