[wix-users] How can installer detect if it is running on Windows 11?

Greg Olone Greg.Olone at cellebrite.com
Tue Aug 23 13:52:02 PDT 2022


Windows 8.1 is also 603.

You need to check the build number as well. Currently Windows 11 is >= 22000 and Windows 10 is >= 10240 and < 22000

Greg O’Lone

From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Gary Henry via wix-users <wix-users at lists.wixtoolset.org>
Date: Tuesday, August 23, 2022 at 12:40 PM
To: wix-users at lists.wixtoolset.org <wix-users at lists.wixtoolset.org>
Cc: Gary Henry <Gary.Henry at microfocus.com>
Subject: [wix-users] How can installer detect if it is running on Windows 11?
I have a CustomAction that calls a DllEntry that checks the value of VersionNT to determine what version of Windows I am installing on. Here are the values I get from VersionNT for different versions of Windows:
601 - Windows 7
602 - Windows 8
603 - Windows 8.1
603 - Windows 10
603 - Windows 11

As you can see, Windows 10 and Windows 11 both return 603. Does anyone know how I can differentiate between Windows 10 and Windows 11 during installation?

The version of Windows 11 I am testing with is Windows 11 Pro, 21H2 (OS Build 22000.318).

Thanks!

Gary

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://protect2.fireeye.com/v1/url?k=31323334-501cfaf3-3134ce07-454445554331-3e2328f20782ddef&q=1&e=4a8df8d8-0a70-4933-ae35-63b2ed56d6b4&u=http%3A%2F%2Fwww.firegiant.com%2F
This e-mail and the information it contains may be privileged and/or confidential. It is intended solely for the use of the named recipient(s). If you are not the intended recipient you may not disclose, copy, distribute or retain any part of this message or attachments. If you have received this e-mail in error please notify the sender immediately [by clicking 'Reply'] and delete this e-mail.


More information about the wix-users mailing list