Modifying the Isolated Shell By Using the .Pkgundef File
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. 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
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:
and add the line:
to the application's .pkgundef file.