Which registry hive for software configuration settings?

Can anyone point me to a definitive article or two that details which registry hive I should be writing configuration settings for my .NET software to? I want a regular user to be able to make configuration changes without have to log in as an administrator. This is more of an issue under Win 7; under XP we used to write everything to HKLM\Software, but this is not working under Win 7. And what's the difference between the hive I would use for a client program versus what I would use for a service? Thanks!
LVL 1
tcianfloneAsked:
Who is Participating?
 
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
yes that is what you have to do.. as Vista/Win7 will virtualize hklm and it will in fact be written to hkcu

here is an article that you might find interesting http://www.registryonwindows.com/registry-security-2.php
0
 
Daniel Van Der WerkenIndependent ConsultantCommented:
http://support.microsoft.com/kb/256986

You should be able to use HKCU fine as long as you're okay with the settings being user specific.
0
 
slingoCommented:
You should load up the .DEFAULT hive ideally - NB this is NOT the same as the default profile on the machine :-)
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Adam LeinssSenior Desktop EngineerCommented:
Isn't .DEFAULT for the system account?  Why would you use .DEFAULT verus HKCU?
0
 
tcianfloneAuthor Commented:
We experimented some with this. If we put the config setttings in HKCU, each user has to configured the software individually. This is not acceptable for our environment. If we put them in HKLM\Software, then they are the same for all users, BUT a user cannot make any config changes in Win 7. In Win 7, it looks like you have to log in as the local machine admin (not just a domain admin) to set config with them stored in HKLM\Software. Is that the intended security scheme for Win7? In Win XP, users could make config changes in this same scenario.
0
 
slingoCommented:

I'm afraid I know nothing about Windows 7. My experience of Microsoft is don't touch their new OS's for the first couple of years!

Sorry I can't help.
0
 
tcianfloneAuthor Commented:
Article was the most helpful one posted but could have used additional info.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.