Retrieving the full path to a (active) COM addin

A

|{arl Shtoshek

Hi, all!

A question like this has been asked earlier (I've included it below).
Tools->Options->Other->Advanced Options->COM Addins... displays the
available COM addins plus the location and load behavior of the current
selection. This is the path I would like to access programmatically!

My question however is a bit more specific.

If, while outlook is running, a new version of the addin gets
registered (regsvr32.exe SomeOutlookAddin.dll) from a different
location, then I can't create a new Office.COMAddIn object to find out
the GUID, because that will point to the new DLL. But I need the
location of the currently (in outlook) active Add-In.

Is there a way to hook into the active outlook application and query
its objects? Or is there some other way to do what I want?

TIA
Karls
 
K

Ken Slovak - [MVP - Outlook]

You really should not be registering new versions of existing addins while
Outlook is running, especially if the addin is connected.

You can iterate the Outlook.Application.COMAddIns collection if you want.
That would give you each loaded COM addin but not its load behavior or path.
 

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