Solved

Regedit delete switch...

Posted on 1998-10-20
6
246 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
ID: 1758833
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
ID: 1758834
Select the item and choose edit/delete.
It works!
0
 
LVL 7

Expert Comment

by:cmcgee
ID: 1758835
I belive he is looking for a Command Line switch

Craig
0
Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

 

Author Comment

by:xserra
ID: 1758836
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
ID: 1758837
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
ID: 1758838
That was really a good solution!
Thanks a lot.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

863 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