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
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