How to: Unregister VSPackages

By default, when you build VSPackages, they are registered to the experimental registry hive. Your experimental hive may fill with VSPackages that you do not intend to keep after you have experimented with them.

To delete all packages that are registered in the experimental hive, just refresh the hive by using the GetOrig action in the VsRegEx tool. For more information, see Experimental Instance of Visual Studio.

To unregister an unmanaged VSPackage

  • Click Start, click Run, type regsvr32 /u pathToVSPackage.dll, and then click OK.

Because unmanaged VSPackages contain self-registration code, you can use the regsvr32 utility to register them and unregister them.

To unregister a managed VSPackage

  • Click Start, click Run type Visual Studio SDK installation path\EnvSDK\tools\bin\x86\regpkg /unregister pathToVSPackage.dll, and then click OK.

The RegPkg tool reads the registration attributes that can be embedded in a managed VSPackage. The /unregister switch instructs RegPkg to remove the information from the registry. For more information about RegPkg, see How to: Register Managed VSPackages.

Community Additions