How to: Add a Windows Installer Search in the Launch Conditions Editor

The Launch Conditions Editor can be used to specify a search for a Microsoft Windows Installer component on a target computer during installation. The result of the search is returned in the Property property and can be evaluated in a launch condition.


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 add a Windows Installer search

  1. Select the Search Target Machine node in the Launch Conditions Editor.

  2. On the Action menu, choose Add Windows Installer Search.

  3. In the Properties window, set the ComponentID property to the GUID of the component you wish to find.


    The Component ID is a GUID assigned by a package during installation; it does not match any of the deployment project properties. To determine the Component ID, you must install the application and use a tool such as the MSI Spy tool included in the Windows Installer Software Development Kit.

To remove a Windows Installer search

  • Select the component search in the Launch Conditions Editor, and choose Delete from the Edit menu.

Community Additions