• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Regedit delete switch...

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
1 Solution
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,

Select the item and choose edit/delete.
It works!
I belive he is looking for a Command Line switch

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

xserraAuthor Commented:
I need to delete the keys non interactively, I use them in a script that launches an application.
Here is how I have done it:

Suppose the registry entry that I want to delete is:

create an INF file:

--begin my.inf--



--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 :)
xserraAuthor Commented:
That was really a good solution!
Thanks a lot.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now