Uninstall Outlook Add-In

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top