Addin doesn't remove from the registry

Add-in Express™ Support Service
That's what is more important than anything else

Addin doesn't remove from the registry
 
Jeffery Goh




Posts: 15
Joined: 2006-02-15
I am using VB.NET 2005 to develop Add-in.

I have came across this issue, when i tried to uninstall the Add-in from the Add/Remove program. Sometime it seems to be not cleanly uninstall. The add-in still remains in the registry, but the toolbars are removed from the office application. If this happened, and i run the setup package again to install my Add-in, the toolbar will not appears in the office application. To overcome this issue, i have to maually remove the registry for the add-in, and run the installation again.

Is this bug or i have done something wrong.
Please advice.

Posted 06 Mar, 2006 20:20:41 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Jeffery.

Do you install the add-in for all users (RegisterForAllUsers = true)?
Posted 07 Mar, 2006 11:29:44 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
Sergey,

Yes, i did set RegisterForAllUsers = True.
Posted 07 Mar, 2006 19:58:31 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Jeffery.

ADX stores information about all its controls in the HKEY_CURRENT_USER key in the system registry. When you uninstall an add-in all registry entries are removed from the current user's account only. There is no way to remove them from all user's accounts. To solve this problem you can remove information about controls in the AddIninitialize event handler.
Posted 08 Mar, 2006 16:51:39 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
Hi Sergey,

Sergey Grischenko wrote:
To solve this problem you can remove information about controls in the AddIninitialize event handler.


Do you mean i should check into registry everytime my addin is being loaded then delete the unwanted registry entry? If yes, can you give me a sample code to verify that.

Thanks.
Posted 09 Mar, 2006 01:18:07 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Jeffery.

Ok, I will develop an example for you.
Actually these registry enrties are necessary for ADX. ADX uses them to check if the user has removed any controls from a host application via the Customize dialog. In this case ADX will not add them again when an add-in starts next time. If these entries are removed every time, the user will not able to remove controls from your command bar. Probably this is not big restriction for you.
Posted 09 Mar, 2006 07:22:05 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
Hi Sergey,

Thank you for your help.

My intension was to find a way to remove the toolbar for all office user in that pc after the add-in has been removed, rather than the toolbar remains in the office and does nothing if i login using another user account.
Posted 10 Mar, 2006 00:47:38 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Jeffery.

What about temporary command bars (Temprary = true)?
Have you tried it yet?
Posted 10 Mar, 2006 05:13:05 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
Hi Sergey,

It works.
Thank you.
Posted 12 Mar, 2006 21:28:39 Top