COM add-in and HKLM hive registration

Y

Y.V

COM add-ins always seem to register themselves to the HKCU hive, how can I
make the registration machine level so that all users can access the add-in?
 
M

[MSFT] James Fletcher

If you are using one of the various VS wizards for creating COM add-ins or
shims then at some point in the wizard UI you have the option to check
something like "My add-in should be available to all users of the computer
it was installed on." Checking that option in the wizard will setup the
registration properly for your project. If you are developing your own
add-in or shim then you want to put the add-in's Office registration in HKLM
rather than HKCU. The structure of the registration should be the same under
HKLM as it is under HKCU ([HKLM |
HKCU]\Software\Microsoft\Office\<app>\Addins\<addin key> and then {[HKLM |
HKCU]\Software\Microsoft\Visio\Addins\<addin key> for Visio).

[MSFT] James Fletcher
Office Programmability Test
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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