Thursday, March 27, 2008

Did you know you could delete a Registry Key or Value via a normal .Reg file?

Neno Loje's Treasury - INFO: .REG files can also delete keys and values

"REG files can not only add and modify but also delete keys and values from the Windows registry.

To delete a registry key

[-HKEY_LOCAL_MACHINE\Software\Test]

To delete a registry value

HKEY_LOCAL_MACHINE\Software\Test
"TestValue"=-

Enjoy!" [Post leached in full]

sigh... I've been hacking .reg files for like a billion years (okay for 14+, since the Chicago, aka Win95, betas ) and I don't think I knew that you could do this (if I did, I've long since forgotten it)

I've been using different command line utilities to delete reg keys and values. Well no more of that for me!  :)

2 comments:

  1. Yes, a very rarely known thing...I also didn't know...came to know about it last year and felt the same way. How did I discover it? A registry key file from Symantec.com to remove all instances of Norton AntiVirus!

    ReplyDelete

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...