blog: the registry part I

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
nikos
Site Admin
Site Admin
Posts: 15803
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

blog: the registry part I

Post by nikos »

here's the comment area for today's blog post found at
www.zabkat.com/blog/11May08.htm
User avatar
pschroeter
Silver Member
Silver Member
Posts: 283
Joined: 2007 Jan 27, 00:46

I enjoyed this post

Post by pschroeter »

I notice no one has posted here yet but I really found this topic very helpful and look forward to more. I still haven't figured out why it is necessary to have any program information outside of the program's folder in the Program folder, unless Windows needs it when Windows starts up.

I would also like to suggest you write something about scripting. I get the impression that Windows has a powerful macro language(s?) built in, but I can't seem to wrap my mind around it.
User avatar
johngalt
Gold Member
Gold Member
Posts: 561
Joined: 2008 Feb 10, 19:41
Location: 3rd Rock
Contact:

Post by johngalt »

When you uninstall a program, typically the folder is deleted.  If you alter reinstall the program your settings would be lost.

Mind you, that is only one reason....
Image

Image
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1241
Joined: 2005 Oct 16, 19:09

Post by FrizzleFry »

The install location is usually only writable by users with admin privileges so normal users cannot update a configuration file there. Also you generally want different users to have separate configuration files. The two common ways to store user specific configuration info is to put it in HKCU (registry) or Application Data in the user's profile folder (file).
Michaelm
Member
Member
Posts: 27
Joined: 2006 Feb 27, 19:14
Location: Netherlands

Post by Michaelm »

FrizzleFry wrote:The install location is usually only writable by users with admin privileges so normal users cannot update a configuration file there. Also you generally want different users to have separate configuration files. The two common ways to store user specific configuration info is to put it in HKCU (registry) or Application Data in the user's profile folder (file).
Don't you need admin privileges to write to the registry then ?!?
User avatar
johngalt
Gold Member
Gold Member
Posts: 561
Joined: 2008 Feb 10, 19:41
Location: 3rd Rock
Contact:

Post by johngalt »

Not to HKey Current Users.
Image

Image
wasker
Gold Member
Gold Member
Posts: 799
Joined: 2005 Oct 21, 16:33
Location: WA, USA
Contact:

Re: I enjoyed this post

Post by wasker »

pschroeter wrote:I still haven't figured out why it is necessary to have any program information outside of the program's folder in the Program folder, unless Windows needs it when Windows starts up.
Because more than one user might use Windows PC, so having a configuration file in one place won't allow them to personalize their experience with program (see: User Profiles). Besides, due to security reasons everything under Program Files is read-only for users (even for admins under Vista IIRC).
I'm using Xplorer2 - the only file manager that does not suck. Actually, it rocks!
User avatar
johngalt
Gold Member
Gold Member
Posts: 561
Joined: 2008 Feb 10, 19:41
Location: 3rd Rock
Contact:

Post by johngalt »

Well, not technically - the rights to writing to folders under Program Files is restricted to administrators - but most programs run with lower privileges, thus most program are not able to write to their installation folders without first gaining administrative privileges.
Image

Image
wasker
Gold Member
Gold Member
Posts: 799
Joined: 2005 Oct 21, 16:33
Location: WA, USA
Contact:

Post by wasker »

johngalt, from the user's perspective this means that Program Files folder is read-only. :)
I'm using Xplorer2 - the only file manager that does not suck. Actually, it rocks!
User avatar
nikos
Site Admin
Site Admin
Posts: 15803
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

more on the registry next week -- unless i get caught up basking in the sun again :)
User avatar
johngalt
Gold Member
Gold Member
Posts: 561
Joined: 2008 Feb 10, 19:41
Location: 3rd Rock
Contact:

Post by johngalt »

@wasker - Unless said user has disabled UAC....

@nikos - bask away!!!  you deserve it!!!
Image

Image
Post Reply