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