Re: HKLM and HKCU Priority

Tech-Archive recommends: Speed Up your PC by fixing your registry



HKCU is for user DSN definition while HKLM is for system DSN definition.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"David Burkinshaw" wrote:
|I have a question regarding which hive has priority. We write software and
| our prior version wrote keys to HKLM\Software\ODBC\..... but our new
version
| has to write to HKCU\Software\ODBC\....
| I noticed on one PC (Server 2003) that the HKLM key value was used but on
| another (XP SP2) machine the HKCU key value was used. One of our policies
is
| to never remove old keys from the registry (which i think is wrong) but I
| can't have different PCs using the wrong key. The reason why the keys are
| now in HKCU is because each user has to have their own ODBC entry to point
| to their own data folder in C:\Documents and Settings\<user>\Application
| Data\<company>\<product>\data
| If this doesn't happen then each user could potentially see other users'
| data because the data would all be stored in a common folder. They could
| also step on each other's data since this is going to be run in a Citrix
| style environment. Also, each user is a non-admin so they wouldn't have
| Write rights to HKLM so they need to have their keys written to HKCU.
| Any insight would be greatly appreciated.
|
| Thanks in advance,
|
| David
|
|


.



Relevant Pages

  • Re: Windows Startup
    ... using F3 to find keys has never worked for me. ... >> thing that causes the System32 folder to open at startup. ... >> Right click hkcu on your Desktop and select: Edit | Select all the text ... >> Right click hklm on your Desktop and select: Edit | Select all the text ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Registry Permissions Error
    ... I was not aware that users had full control in HKCU and limited access ... in HKLM. ... > security is "below" .net so applies to it also. ... the user is not able to create keys in the registry. ...
    (microsoft.public.dotnet.security)
  • Re: DllSurrogate problem with Win XP
    ... all keys under HKCU successfully and still it tries to open the same keys under HKLM. ... I have have no clue to why it needs to access the keys under HKLM when it finds them under HKCU. ... I'm a bit unclear on who is the "current user" when the surrogate is launched... ...
    (microsoft.public.win32.programmer.ole)
  • Re: HKLM and HKCU Priority
    ... HKCU should/would take precedence over HKLM ... | (this if from a prior versions install) ... | driver which is defined by both of these keys. ...
    (microsoft.public.win2000.registry)
  • Re: How to disable the "What do you want to search for" search dialog in explorer?
    ... Yes, there are several complications, especially with the HKCU and HKLM stuff. ... Ramesh Srinivasan, Microsoft MVP [Windows Shell/User] ... to edit the new account template! ...
    (microsoft.public.windowsxp.general)