Uninstall Outlook Add-In

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've built a custom add-in for outlook that works just fine. It places a
toobar button on the standard toolbar. I created the program in reference to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/ol03csharp.asp

When I unistall the add-in the toolbar button is still visible upon next
start of outlook and needs to be deleted manually.

How can this be done automatically when uninstalling the add-in? Can the
setup-project in VS be modified?

Thanks, Dave
 
David,

I don't think that it can be done automatically when the add-in is
uninstalled.

However, if I recall correctly, there is a flag on the command bar class
indicating whether or not it should be persisted (saved) between sessions.
I would set this to false, and then just recreate the toolbar each time the
session is opened.

Hope this helps.
 
Thank you Nicholas. Setting the temporary flag to true works as intended.

Dave.

Nicholas Paldino said:
David,

I don't think that it can be done automatically when the add-in is
uninstalled.

However, if I recall correctly, there is a flag on the command bar class
indicating whether or not it should be persisted (saved) between sessions.
I would set this to false, and then just recreate the toolbar each time the
session is opened.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David Meier said:
I've built a custom add-in for outlook that works just fine. It places a
toobar button on the standard toolbar. I created the program in reference
to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/ol03csharp.asp

When I unistall the add-in the toolbar button is still visible upon next
start of outlook and needs to be deleted manually.

How can this be done automatically when uninstalling the add-in? Can the
setup-project in VS be modified?

Thanks, Dave
 
Back
Top