Solved

Delete registry key

Posted on 2012-03-16
7
306 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 69

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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now