Modifying the Isolated Shell By Using the .Pkgundef File

You can update the .pkgundef file to exclude specified registry entries from an isolated shell-based application. Typically, the first time an application is started on a computer, the Visual Studio Shell copies the existing registry entries for Visual Studio to the root registry key for the application. This includes any references to currently installed VSPackages.

To exclude a specific registry entry from an isolated shell-based application, add to the application .pkgundef file the key followed by the entry. Keys and entries are represented just as in the .pkgdef file; that is, as [$RootKey$] or [$RootKey$\subkey] and "entry"=value, where subkey is the subkey to affect, entry is the entry to remove, and value is either "" or dword:00000000.

To exclude multiple entries from a registry key, just list the key one time, followed by a line for each entry to exclude.

To exclude a whole registry key from an isolated shell-based application, add the key to the application .pkgundef file but do not specify any registry entries for that key.

You can add comments to the .pkgundef file. A single-line comment must have two slashes as the first two characters.

For example, to remove macro support from an application, including the menu items, services, and Option page elements that support macros, add the following lines to the application .pkgundef file.

// Remove macro support.
[$RootKey$\Packages\{A659F1B3-AD34-11d1-ABAD-0080C7B89C95}]
[$RootKey$\Menus]
"{A659F1B3-AD34-11d1-ABAD-0080C7B89C95}"=""
[$RootKey$\Projects\{07CD18B1-3BA1-11d2-890A-0060083196C6}]
[$RootKey$\Projects\{23162FF1-3C3F-11d2-890A-0060083196C6}]
[$RootKey$\Services\{04BBF6A5-4697-11d2-890E-0060083196C6}]
[$RootKey$\Services\{55ED27C1-4CE7-11d2-890F-0060083196C6}]
[$RootKey$\Services\{A659F1B2-AD34-11d1-ABAD-0080C7B89C95}]
[$RootKey$\ToolWindows\{07CD18B4-3BA1-11D2-890A-0060083196C6}]

See Also

Concepts

Isolated Shell Extensibility Points