Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made a project which creates registry on first time run, and checks the value of the key on later run.

but on the first run it give an error registry edit access denied
Posted
Comments
Zoltán Zörgő 26-Jun-13 3:03am    
Check access rights first! What is the key you want to create, and what is the user access level context?

Don't use the registry! Access to the registry has been restricted since it was first introduced, and the restrictions are likely to get more heavy duty rather than less - due to programs overusing it, and security concerns in the same way that it is harder and harder to store your data files and config info in the application installation folder.

Instead store a file in a sensible place that you will have access to. This can help: Where should I store my data?[^]
 
Share this answer
 
Comments
Kashif Alvi 26-Jun-13 3:18am    
Thank You so much for your suggestion i will look forward to store data in an .ini file.
OriginalGriff 26-Jun-13 3:43am    
You're welcome!
It seems that you do not have sufficient permission for making changes in registry. Try to run this in administrative mode.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900