If a DLL or OCX is registered by a non-adminstrator user and regsvr32 says it succeeds, could it still fail to be registered properly?
views:
89answers:
1
+2
A:
Yes. For example, if RegCreateKeyEx
is supplied HKEY_CLASSES_ROOT
and the user is not an administrator, it will create the key under HKCU\Classes
. Otherwise, if the user is an admin, it will create the key under HKLM\Classes
.
(Note the HKCU vs. HKLM distinction. For those who aren't aware:)
HKCU = HKEY_CURRENT_USER
HKLM = HKEY_LOCAL_MACHINE
The important thing is that some accesses to the registry, such as the example above with HKEY_CLASSES_ROOT
are "demultiplexed" between the machine and user registry trees, according to the user's access.
Heath Hunnicutt
2010-06-03 04:40:12
If the entry is created under HKCU, what will happen when the DLL or OCX is accessed?
Craig Johnston
2010-06-03 07:10:37
It will work just fine for the user who installed it, and not work for any other user.
Heath Hunnicutt
2010-06-03 14:36:51