Removing Another Application's Add-in

  • Thread starter Scott Brady Drummonds
  • 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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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