Export (0) Print
Expand All

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.

NoteNote

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

  1. In the File System Editor, select the target folder where the file for Windows 2000 will be installed.

  2. On the Action menu, point to Add, and the click File, and browse to the location of the file.

  3. 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).

See Also

Community Additions

ADD
Show:
© 2014 Microsoft