Setting Conditional Installation Based on Operating System Versions
The Condition property can be used to add conditional logic to an installer (for example, installing different files or setting different registry values for different operating system versions). During installation, a condition specified in the Condition property must evaluate to true or the file or registry value will be ignored. For a list of Windows Installer properties that represent different operating system versions, see Operating System Property Values.
To install files based on operating system version
The following example illustrates installing a file only on Windows 2000 or greater.
In the File System Editor, select the target folder where the file for Windows 2000 will be installed.
On the Action menu, choose Add, File, and browse to the location of the file.
In the Properties window, select the Condition property and type VersionNT>=500.
This condition uses the Windows Installer property VersionNT to determine if the target machine operating system is Windows 2000 (formerly called Windows NT 5.0).
See Also
Deployment Conditions | Condition Property | Operating System Property Values