VS 2003: devenv.exe /setup destroys custom user toolbars

Hi there,

as a part of the installation process for our add-in / package we run devenv.exe
/setup command.
We've received a complaint from users that after installation of our product
their custom
toolbars disappear. We've checked it and it turns out that in VS 2003 devenv.exe
/setup indeed deletes
all custom toolbars. Moreover, this is a known issue:
http://groups.yahoo.com/group/vsnetaddin/message/1328

My question is: what can be a workaround for this issue? Is there any way to save / restore custom toolbars?

Thanks in advance.

[839 byte] By [DmitryShaporenkov] at [2007-12-16]
# 1
Hi Dmitry,

Thanks for the question on devenv /setup destroying custom user toolbars. Unfortunately this is the case. In VS 2003 there's no way to save the toolbars and restore them so there really is nothing that can be done to help users in this case.

In VS 2005 one can save the settings via Import/Export Settings... on the Tools menu. This can be helpful for users to do if they want to save their customizations. The user would export their current settings. Install the package and let it's installation run "devenv /setup". Imports the settings saved before installation should restore the layout previously encountered.

I hope this helps.

AllenD at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 2
Hi Allen,

thanks for your response.

Recently I've learned of the CmdUI.prf file that seems to store users customization. I've tried to backup that file before running devenv /setup, and restore after that, and it seems to work. Not sure it can really be a workaround, but at least it may be gives some option for a user to preserve her customization.

DmitryShaporenkov at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...

Visual Studio

Site Classified