Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make registry value read only

Status
Not open for further replies.

dimchopicha2003

Technical User
Sep 5, 2006
11
Hello,

I need help making 2 registry values read-only so a program only read them but cant rewrite them. I have tried via permissions of the key holding the 2 values, but if I give myself only read permissions for the whole key I get 3 strange errors when closing the program which is basically normal, but the problem is the program is crushing when it tries to run on a scheduled basis.
Tried moving the 2 values out of the key but the program recreated them. The whole thing is that the prog is buggy and it automatically write these 2 values as "True" representing 2 checkboxes on the options menu of the prog and I want them to stay "False"

So is there a quick workaround to make only particular registry values in a registry key read-only?

Thanks in advance.
 
nope you have to do the whole key..individual reg values are not an option...

-Brandon Wilson
MCSE00/03, MCSA:Messaging00, MCSA03, A+

 
Can you do something with a .reg file which incorporates your desired registry values and run a batch file at login which merges your desired registry values into the Registry, either before or after the original program has changed anything?

Make your desired changes to the Registry. After the changes are inserted, right-click on the Registry Key ans select Export. This will create a .reg file for you. When you Open the .reg file it will Merge it into the Registry.

HOW TO: Add, Modify, or Delete Registry Subkeys and Values by Using a Registration Entries (.reg) File

Does your buggy program run any better if you use the following program as a "Wrapper"?

 
Thank you much for your replies.

I've found a "workaround" which I am ok with for now.

If I set the desired values and do not open the GUI of the program they are unchanged. So I've set the program to run on a scheduled basis without opening the GUI and the values are remaining "False". In the very second I've open the GUI of the program the values are back to "True".
 
Thank you for posting your solution. Not many people would have thought of that as a workaround.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top