How to: Set 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.
Note
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.
To install files based on operating system version
In the File System Editor, select the target folder where the file for Windows 2000 will be installed.
On the Action menu, point to Add, and the click 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 computer operating system is Windows 2000 (formerly called Windows NT 5.0).