JanBaan

We install an addin that appears as a menu item on the Tools menu. Works fine. But when we uninstall our product, we want to remove that menu item. With VS2003 that was simple, just remove the registry keys for the addin under HKLM\Software\Microsoft\VisualStudio\7.1 and run "devenv /setup". But after doing a similar thing for VS2005, the menu item still appears and when selected, a message appears that the addin is no longer available and do you want to remove it I want a way to perform this removal automatically so that the user is not even bothered with that. But how

Thanks,

Jan



Re: Visual Studio Extensibility remove VS2005 addin

Carlos Quintero - MVP

See:

HOWTO: Get rid of a Visual Studio add-in

http://www.mztools.com/Articles/2006/MZ018.htm

and

HOWTO: Removing commands and UI elements during Visual Studio .NET add-in uninstallation

(same link)






Re: Visual Studio Extensibility remove VS2005 addin

JanBaan

Hello Carlos,

thanks for the hint, but it does not help: the /resetaddin does not do anything! No matter what I type after it, I get no confirmation or error, VS2005 appears and the menu item has not disappeared. I know that when I click te menu item, I get a chance to remove the addin but I find that confusing and annoying for a user. FYI, I am using VS2003 style registration, not a XML file. Any other suggestions

Thanks,

Jan





Re: Visual Studio Extensibility remove VS2005 addin

Carlos Quintero - MVP

Try the second article that I posted (wrongly):

HOWTO: Removing commands and UI elements during Visual Studio .NET add-in uninstallation

http://www.mztools.com/articles/2005/MZ002.htm






Re: Visual Studio Extensibility remove VS2005 addin

Dmitry Pavlov

That might be also useful to read about Visual Studio Registry Hives concept. Using separate hives for testing your add-in allows you to keep your original VS environment isolated from experimental hives. And you are always able to refresh experimental hive from original one using VsRegEx.exe tool.