Load Key Values in the Windows Registry

When you install your VSPackage, you must also write registry data matching what you supplied to Microsoft when requesting a VSPackage Load Key (PLK). Write this data as specified in the following table in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<version>\Packages\<Package GUID> registry key. The data must be removed from the registry during your VSPackage's uninstallation.

Note

Values must appear in the registry in precisely the form in which they were provided to Microsoft for generation of the PLK. This includes reproducing proper case, spaces, and punctuation, if any. Deviation from the precise form of the value results in the VSPackage failing to load.

Name

Type

Description

ID

REG_DWORD

Resource ID for VSPackage load key.

MinEdition

REG_SZ

Minimum edition of Visual Studio on which VSPackage is loaded. This must be the literal edition value provided by Microsoft when obtaining your PLK.

ProductVersion

REG_SZ

Version of the product that this VSPackage implements.

ProductName

REG_SZ

Name of the product that this VSPackage delivers. If your product includes multiple VSPackages, each needs its own PLK but can share the same ProductName.

CompanyName

REG_SZ

Creator of the VSPackage. The literal name (case-sensitive) provided to Microsoft when registering for a PLK.

See Also

Concepts

VSPackage Load Keys

VSPackage Registration

Registering VSPackages (C#)

Reference

RegistrationAttribute