How to: Add a Launch Condition in the Launch Conditions Editor

How to: Add a Launch Condition in the Launch Conditions Editor

The Launch Conditions Editor can be used to specify conditions that must be met in order to install successfully on a target computer. For example, if your application is designed to run only on Microsoft Windows 2000 or later, you would specify the condition VersionNT>=500. When the installer is run, if the condition evaluates to false then an error message will be displayed and the installation will be aborted.

You can set launch conditions to search for files, registry keys, components (using Windows Installer launch condition), IIS, or the .NET Framework.

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 Working with Settings.

To add a launch condition

  1. Select the Launch Conditions node in the Launch Conditions Editor.

  2. On the Action menu, choose Add File Launch Condition.

    In the Launch Conditions Editor, a Search for File1 item appears in the Search Target Machine node, and a new condition appears in the Launch Conditions node.

  3. To change the name of the search or the condition, click on the item and type a new name.

  4. Click on the new condition. In the Properties window, select the Condition property and enter a valid condition.

    NoteNote

    To learn more about condition syntax, see Conditional Statement Syntax.

  5. Select the Message property and type the text for the error message that will be displayed if the condition evaluates to false.

To remove a launch condition

  • Select the launch condition in the Launch Conditions Editor, and choose Delete from the Edit menu.

Community Additions

ADD
Show:
© 2016 Microsoft