View Single Post
  #6  
Old July 9th 07, 12:24 PM posted to microsoft.public.outlook.program_addins
Christian Havel
external usenet poster
 
Posts: 43
Default Programmatically enable Add-ins

Hi Balaji,

eventually helps the following code snippet:

Dim addIn As COMAddIn

For Each addIn In Application.COMAddIns
addIn.Connect
Next

Christian

"balaji chandan" wrote:

I would like to know how to enable Add-ins programmatically when Outlook
crashes for some reason.I tried two ways of doing it, but invain.

I tried a way by deleting the registry entries under
HKCU\Software\Microsoft\Office\11.0\Resiliency, but this requires to restart
the Outlook for addin to be enabled manually.

Other way is I tried to handle the issue in
IDTExtensibility::OnBeginShutdown() method, but when Outlook crashes the
control does not come here.So i cannot handle it here.
Are there any other ways to handle this issue ?

Thanks
Balaji

Ads