Install com addin for all users using vb6 addin designer

B

brianpower1977

Hi all

I understand that I need to register the addin under HKLM rather than
HKCU.

Anyone know how to do this? I was thinking of just editing the .dsr
file with notepad, is this advisable ?

Any help is much appreciated,
Brian
 
X

XL-Dennis

Brian,

You can do it the following way (with Excel ---> change to appropiate host
application):

Step 1
- Start VB 6.0 and open Your project
- Open the Design form and choose the General tab
- Set the Initial Load Behavior to: None

Step 2
- Switch to the Advanced Tab in the Design Form
- Write the following in the field for Registry Key for Additional Add-in data
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Excel\Addins\Test.Connect
- Click on the New Value Button
- In the dialog New Registry Key Data:
Datatype: String
Value Name: FriendlyName
Value Data: Test
Click OK to close the dialog
- Click on the New Value Button
- In the dialog New Registry Key Data:
Datatype: DWord
Value Name: LoadBehavior
Value Data: 3
Important: the value data is surrounded with quotes, "3" and in order to
delete them:
Select LoadBehavior in the list (Addin specific Data) and click on the Edit
Value button. Click on the OK-button (and the qotes should now have been
deleted).

The COM Add-in will be registrated only in the HKLM and in return it will be
accessible by all users BUT it will not be available via the COM Dialog in
the host application.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
 
B

brianpower1977

Awesome. That worked :D

Thank you soooo much. Im very grateful. long live the interwebs.
 

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