473,386 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Registry

Is there anyway to restrict registry value modification to only allow a certain program to update it?

Cheers,
Rory
Mar 28 '08 #1
7 1092
balabaster
797 Expert 512MB
Is there anyway to restrict registry value modification to only allow a certain program to update it?

Cheers,
Rory
Run regedt32 and go to Edit Permissions... you will see you can set security permissions on keys/hives. You could set up a user account for your application and have your program run as this user to complete registry modifications. This would prevent other applications from changing your registry keys... if someone wanted to manually modify the key, they would have to go into regedt32 and add their user account to the permissions list for those registry keys.
Mar 29 '08 #2
Is there anyway of making it so that one the application permission has been set that no other permission modifications can be made?

The thing is, I'm trying to save a value that the program can use when it loads up, but I don't want it to be available to be modified by the user because that could potentially break the program.
Mar 29 '08 #3
balabaster
797 Expert 512MB
Remove the other permissions from the key. Most people don't know how to use Regedt32 to modify the registry and get around permissions, so it should be pretty safe. Besides...if the user breaks the application - isn't that their problem? Do a check to make sure the value is valid - if it's not, spit out an error telling them not to mess around with the settings or it's on their head that the application doesn't work.
Mar 29 '08 #4
The value stored is part of an ongoing competition so technically they could cheat...
Mar 30 '08 #5
balabaster
797 Expert 512MB
The value stored is part of an ongoing competition so technically they could cheat...
Check out the System.Security.Encryption namespace, it will allow you to encrypt the value first. If you use Symmetric Key Encryption to encrypt/decrypt the value in the registry key...
Mar 31 '08 #6
Sounds like a plan, but one question: is there anyway to set permissions(like for the app) in C#?
Mar 31 '08 #7
balabaster
797 Expert 512MB
Sounds like a plan, but one question: is there anyway to set permissions(like for the app) in C#?
http://bytes.com/forum/thread231535.html

This may help...
Mar 31 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Rohit Santhanam | last post by:
As I am reading the .NET documentation, I get the feeling that Microsoft is trying to get rid of the registry. My understanding is that an application built using .NET does not use the registry...
0
by: vincemoon | last post by:
Below is an excerpt from my Registry Log, created by Redmon, showing the process whereby TweakUI added the compressed folder option to the new sub-menu in the right click context menu for open...
1
by: rdavis7408 | last post by:
I have a database that has a form that opens a report using date parameters. I have been using it for six months and last week I began to get the following Error Message: "File sharing lock...
8
by: Al Kaufman | last post by:
I have a simple console app that uses: regSubKey = <some registry key> Dim reg As RegistryKey = Registry.ClassesRoot.OpenSubKey(regSubKey) Dim path As String path = CStr(reg.GetValue(""))
4
by: Bob | last post by:
My question about how to add an assembly search path to VS.NET's IDE remains unanswered, but I'm still faced with a problem possibly associated with this: my exported registry is more than 67MB....
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
3
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. Is there a way to create a registry key, but orphan it from the program that created it? Reason: Create a key, but not associate it with the...
3
by: Aussie Rules | last post by:
Hi, I want to store some data in the registry, however I have not been able to do this, and think my logic maybe flawed. Firstly I try to open the registry and read in any existing values....
6
by: JOSII | last post by:
Getting a string of boolean value into and out of the registry is no problem. Here's the problem: Although you can place an object into the registry and retreive it, I need to place an ArrayList...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.