Dmitry Kosovets
Dmitry Kosovets

Reputation: 3

Is that possible to reload the third-party Outlook VSTO add-in by program means or make the wrapper add-in triggering configuration reload?

I'm developing the Outlook VSTO add-in that interacts with the third-party Outlook VSTO add-in. The third-party Outlook add-in is stateful and I can't force it to reload its configuration that was changed by my add-in. I'd like to reload the third-party VSTO add-in from my add-in by program means when its configuration is changed. Is that possible?

Or may it be possible to create the wrapper add-in above the third-party add-in, which will disable the main add-in and call its ThisAddIn startup using the loaded DLL and attempt to trigger its configuration reload using DLL calls?

I tried to call the third-party add-in's loaded DLL, but failed to change the state of the loaded add-in. Tried to google, but unsuccessfully.

Upvotes: 0

Views: 45

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66286

In general, you cannot do that. There are ways to load VSTO addins through a proxy in your code when you essentially play the role of the hosting app (Outlook) and load it using IManagedAddin::Load, but IManagedAddin::Unload won't necessarily do a complete cleanup.

Upvotes: 0

Related Questions