You should never store volatile application data in HKEY_LOCAL_MACHINE -
you are guaranteeing that only administrators will be able to use your
program
The appropriate place to put shared data in the registry is exposed via
System.Windows.Forms.Application.CommonAppDataRegistry
and user data via
System.Windows.Forms.Application.UserAppDataRegistry
under both of these you should have keys for <companyname>\<product>
this is the standard non-admin required way of storing information in the
registry
For storing files there are equivelent areas of the file system exposed by
the Application class too.
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<
[email protected]>
Try using this to build impersonation into your program and then run
it.
http://www.codeproject.com/csharp/cpimpersonation1.asp
It might help to just use the source code already provided to see if
you can access the regex. That way you dont have to modify your own
code if it doesnt work, which i doubt.

Sushant
Dennis C. Drumm said:
Can my program access the HKEY_LOCAL_MACHINE/Software section of the
registry when being used by a user with restricted rights (not with
admin
rights)?
If so, how? I have a program that functions just fine when run by an
administrator but generates an exception when run by a restricted user.
The
program accesses the HKEY_LOCAL_MACHINE/Software section to set or get
application settings that are not user specific.
Thanks,
Dennis
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
[microsoft.public.dotnet.languages.csharp]