Manuall installing a COM Addin (i.e. without using setup wizard)

S

Stephen Corey

I'm trying to manuall install a C# Com Addin. Here's what I've done:

1. I've ran the command "regasm /regfile:regit.reg wsaddins.dll" and have
added the the
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins\WSAddins.Connec
t] key to the regfile.

2. Copied the .dll to the windows\system32 directory on the target PC
(WinXP).

3. Ran the regfile generated by regasm on the target PC.

4. Tested Outlook 2002 on the target PC (and the addin doesn't even load)

Am I missing something else?? I've previously registered the dependancies
(Office XP Interops, like Microsoft.office.interop.outlook.dll) in a
previous addin that I created (which is working).
 
M

Martijn Reijm

Hi,

I've built me a COM addin with VB6.
I use the following registry entries to register it and have it run:

[HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security]
"DontTrustInstalledFiles"=dword:00000000

This key is supposed to tell Outlook to trust Addins

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\<class
identifier>]
"FriendlyName"=<friendly name>
"Description"=<description>
"LoadBehavior"=dword:00000003

This key makes de COM addin load when oulook starts.
The user can see (and disable) the COM addin...

So we also have a version that hides the addin so it can't be disabled:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\<class
identifier>]
"FriendlyName"=<friendly name>
"Description"=<description>
"LoadBehavior"=dword:00000003

(For <class identifier> u must substitute something like
MyDLL.OutlookCOMClass or however you named your COM addin)

Maybe this is of some help to you

Martijn
 

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