Modifying the Isolated Shell By Using the .Pkgundef File

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

You can modify the .pkgundef file to exclude specified registry entries from an isolated shell application. Typically, the first time an application is started on a computer, the Visual Studio shell copies the existing Visual Studio registry entries 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 application, add to the application .pkgundef file the package 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 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 the Connect to Database and Connect to Serve r commands on the Tools menu, you can uncomment the line:

[$RootKey$\Packages\{8D8529D3-625D-4496-8354-3DAD630ECC1B}]  

and add the line:

[$RootKey$\Packages\{198E76C1-34C0-424D-9957-B3EBD80265FB}]  

to the application's .pkgundef file.

See Also

Package GUIDs of Visual Studio Features
Customizing the Isolated Shell