?
Solved

Delete registry key

Posted on 2012-03-16
7
Medium Priority
?
314 Views
Last Modified: 2012-03-22
Hello all,

I am trying to delete a registry key that is under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\  using My.Computer.Registry.CurrentUser.DeleteSubKey(mykey) but it doesn't work.
Any ideas?
0
Comment
Question by:MissNicola
  • 4
  • 2
7 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 37731040
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37731292
What  version of windows?
0
 

Author Comment

by:MissNicola
ID: 37731494
Vista Ultimate
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37731503
It could be a permission issue. Does it work if you run the app as admin?
0
 

Author Comment

by:MissNicola
ID: 37731531
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?
0
 

Accepted Solution

by:
MissNicola earned 0 total points
ID: 37732640
I found the error. It was because I was using the "HKEY_CURRENT_USER\" in my path, and also because I was trying to delete subkeys instead of values.
0
 

Author Closing Comment

by:MissNicola
ID: 37751422
Found the solution
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Integration Management Part 2
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question