Removing Another Application's Add-in

  • Thread starter Thread starter Scott Brady Drummonds
  • Start date Start date
S

Scott Brady Drummonds

Hi, everyeone,

I need a way of automating the removal of a Virus Scan add-in in my own
application. That is, I want to write an application that either removes or
disables Virus Scan in Outlook. However, the details of add-in registration
and remove are abstracted in the Visual Studio "Shared Add-in" template, so
I cannot find documentation on how to do this.

Can anyone offer any suggestions?

Thanks,
Scott
 
You could read the registry at HKCU\Software\Microsoft\Office\Outlook\Addins
and set LoadBehavior to 2 if the addin isn't already running. If it is the
only way I know of is to iterate the COMAddins collection and find the addin
you want and set its Connect bit to False.
 
Back
Top