Solved

Regedit delete switch...

Posted on 1998-10-20
6
241 Views
Last Modified: 2013-12-16
Well, is there any way to delete a complete branch with all it's values of the registry?, like

regedit /<this is the question> HKEY_CURRENT_USER\Software\whatever_branch

Thanks a lot: Xavier Serra, Ibv
0
Comment
Question by:xserra
6 Comments
 
LVL 7

Expert Comment

by:cmcgee
Comment Utility
I know this may not help you, but NT has a resource called REGDEL that allows you to do this.

I have browsed around and have not found any command line switches that do what you are looking for.

Good Luck,

Craig
0
 

Expert Comment

by:xu092098
Comment Utility
Select the item and choose edit/delete.
It works!
0
 
LVL 7

Expert Comment

by:cmcgee
Comment Utility
I belive he is looking for a Command Line switch

Craig
0
Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 

Author Comment

by:xserra
Comment Utility
I need to delete the keys non interactively, I use them in a script that launches an application.
0
 
LVL 1

Accepted Solution

by:
WinDude earned 200 total points
Comment Utility
Here is how I have done it:

Suppose the registry entry that I want to delete is:
HKEY_LOCAL_MACHINE\SOFTWARE\MyApp

create an INF file:

--begin my.inf--
[version]
signature="$CHICAGO$"

[SectionName]
DelReg=DelSection

[DelSection]
HKLM,SOFTWARE/MyApp

--end my.inf--

Now, from the command prompt or script or program make this call:
rundll setupx.dll,InstallHinfSection SectionName 128 c:\my.inf
You must have the path to the INF file at the end.

That's it!

The command is:
rundll setupx.dll,InstallHinfSection <section> <code> <path-inf>
where <section> is the name of the section in the INF file that you are calling and <code> is:
128=do not reboot
129=reboot without a prompt
130=reboot with a prompt (yes/no)
131=setup determines if it needs a reboot without a prompt
132=setup determines if it needs a reboot with a prompt (yes/no)

Hope this helps :)
0
 

Author Comment

by:xserra
Comment Utility
That was really a good solution!
Thanks a lot.
0

Featured Post

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

11 Experts available now in Live!

Get 1:1 Help Now