The VersionNT and VersionNT64 properties seem to be "stuck" on the Windows 8.1 603 value, even if the Windows version is newer. This is at least the behavior I'm observing when testing MSI installation on Win10 and Win11.
The documentation still targets Wix3, with a <Condition ..> tag, whereas Wix 4-5 instead use <Launch Condition=...> for blocking installation.
Proposal
Suggestions:
Replace the <Condition ..> tag with <Launch Condition=...> so that it becomes compatible with Wix 4-5.
Switch to using the SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber registry key to detect Windows version. Example: Microsoft PowerToysSetup Product.wxs.
User story
The How To: Block Installation Based on OS Version seems outdated, and suffer from the following shortcommings:
VersionNT
andVersionNT64
properties seem to be "stuck" on the Windows 8.1603
value, even if the Windows version is newer. This is at least the behavior I'm observing when testing MSI installation on Win10 and Win11.<Condition ..>
tag, whereas Wix 4-5 instead use<Launch Condition=...>
for blocking installation.Proposal
Suggestions:
<Condition ..>
tag with<Launch Condition=...>
so that it becomes compatible with Wix 4-5.SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber
registry key to detect Windows version. Example: Microsoft PowerToysSetup Product.wxs.Considerations
No response