Ken Slovak - said:
You certainly can register it only in HKCU, in fact it's bad practice to
register both in HKLM and HKCU. It causes all sorts of problems.
If you register in HKLM it makes the addin usable for all users on that
computer. That's called an administrative installation. Installations
registered there do not show up in the COM Add-Ins dialog for the user to
disable/enable.
Registering in HKCU makes the addin available for only the logged in user
(Windows login). It does show up in the COM Add-Ins dialog for the user to
control whether it runs. For a computer with multiple users you would
register it in each user's HKCU hive.
Ken,
I'm thrashing about here making lots of mistakes trying to get this right. I
would really appreciate it if you could straighten me out.
I initially created the Add-in with the VB6 COM Add-in template and
designer. It worked but would only install for users with admin privilege.
That's when I came up with the "two step" install that I described earlier.
I wrote a program that would create the key in HKCU (following the guide for
VB5 setup in your book). That in itself, however, didn't seem to be enough
on the user workstations. (I noted that the key didn't include a path to
the .dll file). I created a second program that registers the Add-in in
HKLM\Software\Classes\CLSID. The second program must, of course, be run by
an admin user. These two, together, work. It's a really clumsy set up.
Can you tell me what I should be doing to make this a single step, user
installable package?
Randy Harris