Uninstall a toolbars

Started by Nikolay, February 04, 2009, 11:16:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nikolay

Hello visio developers.

I have developed a Visio addin. It installs a custom toolbar in Visio.
Is there a way I can uninstall that toolbar (programmatically) without starting Visio and without harming the customizations other addins have done to Visio?
I.e. removing file "customXX.vsu" from user's "Documents and Settings" is not an option.

Probably I can set some magic key in registry or somewhere (like "ConfigChangeID") to notify Visio
that the toolbar is not valid anymore and shall be removed on the next run?

Making the toolbar "temporary" and installing-uninstalling it on each run unfortunately also does not seem to be an option,
since in this case toolbar's state and position are not saved between runs...

I customize Visio UI using CommandBars approach.

Thanks in advance
Kind regards, Nikolay.