sthede10000
Posts: 2
Joined: Mon Apr 10, 2017 5:42 pm

List of all Windows OS detection types and values

Trying to figure out which version of windows your installer is running on? The complete list along with all the slight variations is not easy to detect. Advanced Installer does list these values within the app, but they are deep in the conditions dialog and are not listed anywhere online as far as I know.

So for your reference purposes, here are the MSI values to be checked to determine a particular version of Windows:

32-bit

Code: Select all

Windows XP x86                     VersionNT = 501
Windows Server 2003 x86            VersionNT = 502
Windows Vista x86                  VersionNT = 600 AND MsiNTProductType = 1
Windows Server 2008 x86            VersionNT = 600 AND MsiNTProductType <> 1
Windows 7 x86                      VersionNT = 601 AND MsiNTProductType = 1
Windows 8 x86                      VersionNT = 602 AND MsiNTProductType = 1
Windows 8.1 x86                    VersionNT = 603 AND MsiNTProductType = 1
Wndows 10 x86                      VersionNT = 1000 AND MsNTProductType = 1
64-bit

Code: Select all

Windows XP x64                     VersionNT64 = 501
Windows Server 2003 x64            VersionNT64 = 502
Windows Vista x64                  VersionNT64 = 600 AND MsiNTProductType = 1
Windows Server 2008 x64            VersionNT64 = 600 AND MsiNTProductType <> 1
Windows 7 x64                      VersionNT64 = 601 AND MsiNTProductType = 1
Windows Server 2008 R2 x64         VersionNT64 = 601 AND MsiNTProductType <> 1
Windows 8 x64                      VersionNT64 = 602 AND MsiNTProductType = 1
Windows Server 2012 x64            VersionNT64 = 602 AND MsiNTProductType <> 1
Windows 8.1 x64                    VersionNT64 = 603 AND MsiNTProductType = 1
Windows Server 2012 R2 x64         VersionNT64 = 603 AND MsiNTProductType <> 1
Windows 10 x64                     VersionNT64 = 1000 AND MsiNTProductType = 1
Windows Server 2016 x64            VersionNT64 = 1000 AND MsiNTProductType <> 1
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: List of all Windows OS detection types and values

Hello and welcome to our forums,

Thank you for your contribution on our forum. We will try to add more comprehensive information about each OS Version Detection in our user guide too. Thank you for bringing this to our attention.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AlonzoRour
Posts: 1
Joined: Wed Apr 12, 2017 7:41 am

Re: List of all Windows OS detection types and values

Excellent. The numerical order of them will make it much easier for me to remember.

Cheers
rmk
Posts: 2
Joined: Sat Jan 06, 2018 12:49 am

Re: List of all Windows OS detection types and values

The post "List of all Windows OS detection types and values" by sthede10000 » Mon Apr 10, 2017 9:50 am

is incorrect. VersionNT and VersionNT64 both return a value of 603 for Windows10 64 bit and Windows 8.1 64 bit.

On Windows 8.1 32 bit, VersionNT is also returned as 603 and VersionNT64 is not defined.

Is there any other way to identify the OS in a MSI installer.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: List of all Windows OS detection types and values

Hello and welcome to our forums,

Thank you for your feedback, but this is not true. If you use an Advanced Installer version (i.e. AI 12.4 or newer version) which has support for Windows 10 the VersionNT and VersionNT64 property should be set as exposed previously in this thread.

Have you tested this and got a different result? If so, could you give us more details or a test case we can investigate?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rmk
Posts: 2
Joined: Sat Jan 06, 2018 12:49 am

Re: List of all Windows OS detection types and values

Thank you Daniel. Since I was not using Advanced Installer I ran into that problem. I was using WIX to build my MSI package and in there I was not getting the values as specified in this thread.

Ramesh
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: List of all Windows OS detection types and values

You are welcome Ramesh.

Packages built with Advanced Installer should always have the VersionNT and VersionNT64 properties set correctly.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”