developer_cp
Posts: 48
Joined: 2016-10-28
|
The OutlookApp is null during Uninstall. I'm trying to grab the MAPIOBJECT...
public override void UninstallControls()
{
var blah = AddinModule.CurrentInstance.OutlookApp.Session.MAPIOBJECT;
}
public override void UninstallControls()
{
var blah = AddinModule.CurrentApp.Session.MAPIOBJECT;
}
|
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
Hello Eric,
I should have been more explicit in my last message in your other topic: You need to use the BeforeUninstallControls and/or AfterUninstallControls events of the add-in module. In this case the original UninstallControls will start the host application and invoke the event(s) passing them the application object.
When you override UninstallControls, you can't get AddinModule.CurrentApp: it isn't set because the module is created by adxregistrator.exe, not by Office.
Andrei Smolin
Add-in Express Team Leader |
|