VersionNT
Description
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 |
Version |
VersionNT value |
| Windows NT4 |
4.0 |
400 |
| Windows 2000 |
5.0 |
500 |
| Windows XP |
5.1 |
501 |
| Windows XP Professional x64 |
5.2 |
502 |
| Windows 2003 |
5.2 |
502 |
| Windows Vista |
6.0 |
600 |
| Windows Server "Longhorn" |
6.0 |
600 |
Usage
| Usage |
| How to set |
Do not set this variable directly; it is set automatically when the
installer runs. |
| How to use |
You can refer to it as <VersionNT> (Tarma native syntax,
preferred) or [VersionNT] (Windows
Installer syntax). In conditional expressions you can omit the brackets and use tests like
VersionNT >= 500. |