Hi Jeremy North, The suggestion that a program should write to HKEY_LOCAL_MACHINE at installation and then never again doesn't make much sense to me. If a software program needs to store stuff in HKEY_LOCAL_MACHINE then odds are good it needs to be able to change it.
So is there a way to write to some HKEY_LOCAL_ALL_USERS (my invention!) as opposed to HKEY_LOCAL_USERS? Or does this mean that software programs are meant to be using INI files now (in All Users profile) instead of the registry for storing machine wide parameters and settings? I'm asking you because you seem to know what you are talking about ;-). David. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy North Sent: Monday, 30 April 2007 4:07 p.m. To: [EMAIL PROTECTED]; NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Vista and Ini files Guys, Since Windows 2000 MS have been saying DO NOT save settings to the Program Files folder. In Vista they finally made it very hard to save settings in this location. If you followed MS's advice you would already be saving in either the users profile or all users profile (for shared settings) and File Virtualisation would not be important to you. If you need to write to HKEY_LOCAL_MACHINE then this is the job for your INSTALLER. The installer runs under Admin rights (UAC prompt) and you should write to the HKEY_LOCAL_MACHINE key then. Your application shouldn't ever need to write to HKEY_LOCAL_MACHINE. cheers, Jeremy _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe