How to: Add and Delete Registry Keys in the Registry Editor

Registry keys can be added to a deployment project using the Registry Editor. If a key doesn't exist in the registry of a target computer it will be added during installation. Keys can be added beneath any top-level key in the Registry Editor.

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 add a registry key

  1. Select a top-level key node in the Registry Editor.

  2. On the Action menu, click New Key.

    A key is added beneath the selected node and the default name is highlighted.

  3. Type a name for the new key, and then edit any properties of the key in the Properties window as necessary.

To add a sub-key

  1. Select a key node in the Registry Editor.

  2. On the Action menu, point to New, and then click Key.

  3. Type a name for the new key, and then edit any properties of the key in the Properties window as necessary.

To remove a key

  • Select the key in the Registry Editor, and choose Delete from the Edit menu.

    NoteNote:

    If a key contains values or sub-keys they are also deleted. You are be prompted for confirmation before the key is deleted.

Community Additions

Show: