Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Delete registry key

Posted on 2012-03-16
7
Medium Priority
?
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

609 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