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
Solved

Regedit delete switch...

Posted on 1998-10-20
6
250 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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Free OST to PST converter 8 73
Accessing two networks from one PC 30 107
Short video clip to play (loop) in email 2 32
Restore Windows 7 Snipping Tool function to Windows 10 10 75
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

792 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