How to: Add a Registry Search in the Launch Conditions Editor

The Launch Conditions Editor can be used to define a search for a registry key 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 to determine if the installation should continue. You can set the Root property for a registry search to specify a registry root. You can also set the Value property to specify a registry value.


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 registry search

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

  2. On the Action menu, choose Add Registry Search.

  3. In the Properties window, set the Root and RegKey properties for the Registry key you wish to find. The following example shows how to set the RegKey property to search for the Visual Studio Tools for Office 2005 SE runtime in the registry.

    Software\Microsoft\vsto runtime Setup\v2.0.50727
  4. Optionally, set the Value property to search for a specific value.

To remove a registry search

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

Community Additions