Howto register ComAddin to "Local Machine" not "Current User"?

M

Matthias Guenther

Hi,

how can I register a ComAddIn for the local machine and not the current
user?

I have the problem that the administrator runs the setup and the
Outlook-ComAddIn is installed and registerd well.

If you now run a different user on the same machine the ComAddIn will
not be executed.

Thanks.
 
S

Siew Moi Khor [MS]

Hi Matthias,
As far as I know, it isn't possible to reg on a per local machine basis.

Siew Moi
 
S

Stephen Bullen

Hi Matthias,
how can I register a ComAddIn for the local machine and not the current
user?

I have the problem that the administrator runs the setup and the
Outlook-ComAddIn is installed and registerd well.

If you now run a different user on the same machine the ComAddIn will
not be executed.

By default, the Designer will only auto-register the addin for the local
user, i.e. adding the registry entries to:
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins

However, you can add your own registry entries to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Excel\Addins

by specifying them in the 'Advanced' tab of the Designer UI.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk
 
M

Matthias Guenther

Hi Stephen,
By default, the Designer will only auto-register the addin for the local
user, i.e. adding the registry entries to:
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins

However, you can add your own registry entries to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Excel\Addins

by specifying them in the 'Advanced' tab of the Designer UI.

I have tried this, but the problem is after unregister the Addin this
entrys will not be removed! Therefore I have decided to to this entrys
by an external application or by the setup itself.

BTW: Is it possible to say the Addin to NOT make the entry in
HKEY_CURRENT_USER?

Matthias
 
S

Stephen Bullen

Hi Matthias,
I have tried this, but the problem is after unregister the Addin this
entrys will not be removed! Therefore I have decided to to this entrys
by an external application or by the setup itself.

BTW: Is it possible to say the Addin to NOT make the entry in
HKEY_CURRENT_USER?

You could not use the Designer. Instead, have a normal class module that
implements the IDTExtensibility2 interface. That way, no registry
entries will be written. I believe there are some articles on MSDN that
explain how to do it this way.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk
 
T

Thomas Winter

Matthias Guenther said:
Hi,

how can I register a ComAddIn for the local machine and not the current
user?

I have the problem that the administrator runs the setup and the
Outlook-ComAddIn is installed and registerd well.

If you now run a different user on the same machine the ComAddIn will
not be executed.

Thanks.

I have a better solution.

Make these registry changes (from my .REG file):

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\AddIn Designer]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\AddIn Designer\Microsoft
Outlook (All Users On Local Machine)]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\AddIn Designer\Microsoft
Outlook (All Users On Local Machine)\Microsoft Outlook 9.0]
@="HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Office\\Outlook"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\AddIn Designer\Microsoft
Outlook (All Users On Local Machine)\Microsoft Outlook 9.0\LoadBehaviors]
"Load at next startup only"=dword:00000010
"Load on demand"=dword:00000009
"Startup"=dword:00000003
"None"=dword:00000000


What you are doing to updating the Add-In Designer in VB. Startup VB again
and you will find that the designer now has options for All Users On Local
Machine. Use this option and it will register and unregister properly.

-Tom
 
Top