HKLM and HKCU Priority

Tech-Archive recommends: Fix windows errors by optimizing your registry



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: HKLM and HKCU Priority
    ... HKCU is for user DSN definition while HKLM is for system DSN definition. ... | to never remove old keys from the registry but I ...
    (microsoft.public.win2000.registry)
  • Active Setup
    ... components, say HKCU registry keys. ... I came to know that we can use ACTIVE SETUP for avoiding advertised shortcut ... contains some stub path to invoke the created .inf file to populate the HKCU ...
    (microsoft.public.win2000.setup)
  • Re: Access HKCU from an app with another set of credentials
    ... GPO keys are stored in to two locations in HCKU. ... The GPO applied to the end user has the "Disable registry editing tools" ... policy enable which prevents a support tech from opening REGEDIT with the ... user logged to review the user's HKCU hive. ...
    (microsoft.public.dotnet.languages.vb)
  • 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)