K
Kristy
Hi
I have created a com addin for Outlook and am using a Designer
(actually I use 2, one for Word and one for Outlook).
The designer registers the dll automatically to HKCU but I need to use
HKLM.
I have been using Visual Studio installer (.msi) to install my
application and set the following registry keys in
HKLM\Software\Microsoft\Addins\Outlook\Addins\MyAddin.Connect
CommandLineSafe = 0
LoadBehaviour = 3
Description = "My Addin"
FriendlyName = "My Addin"
I also need to use Orca to change the Property table to ALL USERS = 2
This works, except that the dll still registers to HKCU as well, I
read that this is because VB is adding my additional settings to the
DllRegisterServer and DllunregisterServer instead of replacing them.
So far I have just been manually deleting the HKCU entries but have
noticed that each time the server (in this case a citrix server)is
rebooted the HKCU entries come back and this often causes the load
behaviour in HKLM to change to 2, which is a disaster!
The options I have found so far are:
1. Use the installation package to create the registry entries but do
not register the addin dll. So I changed the dll in the installer to
'0'(do not self register), but this didn't work (Ther were no HKCU
settings and HKLM was as expected but the addin didn't load), so what
other entries do I need to make?
2. Don't use a designer just set up IDTExtensibilty2 in a class module
and set up HKLM and other registry keys using the installer. Again,
unsure of all the keys required to do this?
3. Use regOverridePredefKey API to tell the OS to use HKLM instead of
HKCU. This sounds scary but if it is the best way then I'm willing to
give it a go... any code samples or advise would be greatly
appreciated
I guess I'm really after some advise from someone who is very
knowledgable on the best, most reliable, stable way to deal with this.
I am also planing on using InstallShield in the future which may have
more options... any suggestions?????
Thanks
Kris
I have created a com addin for Outlook and am using a Designer
(actually I use 2, one for Word and one for Outlook).
The designer registers the dll automatically to HKCU but I need to use
HKLM.
I have been using Visual Studio installer (.msi) to install my
application and set the following registry keys in
HKLM\Software\Microsoft\Addins\Outlook\Addins\MyAddin.Connect
CommandLineSafe = 0
LoadBehaviour = 3
Description = "My Addin"
FriendlyName = "My Addin"
I also need to use Orca to change the Property table to ALL USERS = 2
This works, except that the dll still registers to HKCU as well, I
read that this is because VB is adding my additional settings to the
DllRegisterServer and DllunregisterServer instead of replacing them.
So far I have just been manually deleting the HKCU entries but have
noticed that each time the server (in this case a citrix server)is
rebooted the HKCU entries come back and this often causes the load
behaviour in HKLM to change to 2, which is a disaster!
The options I have found so far are:
1. Use the installation package to create the registry entries but do
not register the addin dll. So I changed the dll in the installer to
'0'(do not self register), but this didn't work (Ther were no HKCU
settings and HKLM was as expected but the addin didn't load), so what
other entries do I need to make?
2. Don't use a designer just set up IDTExtensibilty2 in a class module
and set up HKLM and other registry keys using the installer. Again,
unsure of all the keys required to do this?
3. Use regOverridePredefKey API to tell the OS to use HKLM instead of
HKCU. This sounds scary but if it is the best way then I'm willing to
give it a go... any code samples or advise would be greatly
appreciated
I guess I'm really after some advise from someone who is very
knowledgable on the best, most reliable, stable way to deal with this.
I am also planing on using InstallShield in the future which may have
more options... any suggestions?????
Thanks
Kris