reg permissions change?

G

Guest

hi, i sent one of my program to a friend and my program uses the registry to
store values and such that my program needs but he cant run it because he
isnt allowed access to the registry....is there anyway i can change that
access so my program can read, write, delete, etc reg keys? thanks
 
M

Marina

The program is going to run as whoever is logged in. So if the program
doesn't have rights to the registry, that means your friend doesn't. Is your
friend an admin on that machine?

The other thing is, there are other, far easier ways to store program or
user specific information, othern then putting it in the registry. You can
store user specific files, for instance in the application data folder for
the user, which your app will always have access to, for instance.
 
G

Guest

No, your program cannot grant access to registry keys that the user does not
have access to. However, their should be certain keys that you can read and
write to. The easiest way is to use the GetSetting and SaveSetting method.

However, .net applications typically store configuration information in an
XML config file, such as app.config, which can be read with
System.Configuration.ConfigurationSettings.AppSettings.
 
C

Cor Ligthert [MVP]

iwdu

The user should be able to get access to the current user settings of the
registry.

It would be a great hack if he cannot and still start someting else.

Did you place your information in
Registry.CurrentUser (software)

Hkey_current_user.software

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top