This is a typical kind of install problem ... By default only an administrator can read and write to HKEY_LOCAL_MACHINE, which is why you normally need to be an administrator to install software - especially typical in corporate desktop setups.
It normally happens because as developers we tend to develop with administrator rights On NT/Win2K/XP, and hence never notice these kind of issues (until we deploy and it all goes to *O&@$) - unless you test all your software on a user with restricted rights etc etc etc There is some quite good info on the MSDN about what to do ... Myles. -----Original Message----- From: Phil Scadden [mailto:[EMAIL PROTECTED]] Sent: Friday, 30 August 2002 3:07 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Windows 2000 Registry > I have an app that access's HKEY_LOCAL_MACHINE\SOFTWARE\xxxx\xxx. This > works fine as administrator. As a Power user the app seems unable to read or > write to said registry entry although I can open regedit and both read and > write to the same entries. Am I missing something simple? Just battled this also. If you look with regedit32 (instead of Regedit), you may notice that power user has read but not full control of key. If you reg.openkey it will fail for your power user because doesn't have enough rights. Try either increasing access rights for power user or using reg.openkeyreadonly if that is appropriate. ---------------------------------------------------------- Phil Scadden, Institute of Geological and Nuclear Sciences 41 Bell Rd South, PO Box 30368, Lower Hutt, New Zealand Ph +64 4 5704821, fax +64 4 5704603 --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/