VersionNT

The installer sets this variable to the Windows version number of the target system if the target system is Windows NT-based. Otherwise it is not set (or set to 0). The Windows version number is encoded as 100 * major + minor, as follows:

Product Windows version Version9x VersionNT VersionNT32 VersionNT64
Windows 95 4.0 400 0 0 0
Windows 98 4.10 410 0 0 0
Windows Me 4.90 490 0 0 0
Windows NT4 (32-bit edition) 4.0 0 400 400 0
Windows 2000 (32-bit edition) 5.0 0 500 500 0
Windows XP (32-bit edition) 5.1 0 501 501 0
Windows XP (x64 edition) 5.2 0 502 0 502
Windows Server 2003 (32-bit edition) 5.2 0 502 502 0
Windows Server 2003 (x64 or IA64 edition) 5.2 0 502 0 502
Windows Server 2003 R2 (32-bit edition) 5.2 0 502 502 0
Windows Server 2003 R2 (x64 or IA64 edition) 5.2 0 502 0 502
Windows Vista (32-bit edition) 6.0 0 600 600 0
Windows Vista (x64 edition) 6.0 0 600 0 600
Windows Server 2008 (x64 or IA64 edition) 6.0 0 600 0 600
Windows 7 (32-bit edition) 6.1 0 601 601 0
Windows 7 (x64 edition) 6.1 0 601 0 601
Windows Server 2008 R2 (x64 or IA64 edition) 6.1 0 601 0 601
Windows 8 (32-bit edition) 6.2 0 602 602 0
Windows 8 (x64 edition) 6.2 0 602 0 602
Windows Server 2012 (x64 edition) 6.2 0 602 0 602
Windows 8.1 (32-bit edition) 6.3 0 603 603 0
Windows 8.1 (x64 edition) 6.3 0 603 0 603
Windows Server 2012 R2 (x64 edition) 6.3 0 603 0 603
Windows 10 (32-bit edition) 10.0* 0 1000 1000 0
Windows 10 (x64 edition) 10.0* 0 1000 0 1000
Windows Server 2016 (x64 edition) 10.0** 0 1000 0 1000
Windows Server 2019 (x64 edition) 10.0** 0 1000 0 1000
Windows 11 (32-bit edition) 10.0* 0 1000 1000 0
Windows 11 (x64 edition) 10.0* 0 1000 0 1000
Windows Server 2022 (x64 edition) 10.0** 0 1000 0 1000

*Early preview versions of Windows 10 used Windows version number 6.4 (and corresponding VersionNTxx number 604). However, Microsoft chose version 10.0 as the official release number. InstallMate installers will recognize both 6.4 and 10.0 as Windows 10. Windows 11 still uses this same version number; to distinguish between Windows 10 and 11, use the WindowsBuild variable.

**Windows Server 2016, 2019, and 2022 share the same 10.0 version number and hence the same VersionNTxx number 1000. If you need to distinguish between Server 2016-2022, use the WindowsBuild variable.

Usage

You can refer to it as <VersionNT>. In conditional expressions you can omit the brackets and use tests like VersionNT >= 500. Do not set this variable directly; it is set automatically when the installer runs.

Related topics

ServicePackLevel, ServicePackLevelMinor, Version9X, VersionNT32, VersionNT64, WindowsBuild, System information variables