MissNicola
asked on
Delete registry key
Hello all,
I am trying to delete a registry key that is under HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\Run\ using My.Computer.Registry.Curre ntUser.Del eteSubKey( mykey) but it doesn't work.
Any ideas?
I am trying to delete a registry key that is under HKEY_CURRENT_USER\Software
Any ideas?
What version of windows?
ASKER
Vista Ultimate
It could be a permission issue. Does it work if you run the app as admin?
ASKER
I think the problem is caused because I'm setting the wrong path because I get an error "No value exists with that name." The path is specified above and the entry exists.
Any ideas how to set the path correctly?
Any ideas how to set the path correctly?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found the solution
check http://www.emoreau.com/Entries/Articles/2003/10/Using-the-registry-from-a-VBNet-application.aspx