Registry Branch delete with .reg

P

Powerchordpunk

Guest
Does anyone know what to put in a .reg file to make it DELETE certain branches of the registry? I run an ftp server where i will soon put out a reg file and icon that go in start menu that link to my site. I want to have an easy uninstallation for novice users who don't want to delete a branch in the registry and merge back in the original, unedited branch. Any help would be greatly appreciated.
 
If it is similar to the XP-erience one you could just clear them rather than deleting them:

Code:
Windows Registry Editor Version 5.00 

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}] 
@="" 

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\DefaultIcon] 
@="" 

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag] 
"CLSID"="{13709620-C279-11CE-A49E-444553540000}" 
"method"="ShellExecute" 
"command"="" 
"Param1"=""
 
I found this off of freepctech.com:

Deleting keys or values using a REG file
It is also possible to delete keys and values using REG files. To delete a key start by using the same format as the the REG file above, but place a "-" symbol in front of the key name you want to delete. For example to delete the [HKEY_LOCAL_MACHINE\SYSTEM\Setup] key the reg file would look like this:



REGEDIT4

[-HKEY_LOCAL_MACHINE\SYSTEM\Setup]

The format used to delete individual values is similar, but instead of a minus sign in front of the whole key, place it after the equal sign of the value. For example, to delete the value "SetupType" the file would look like:



REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\Setup]
"SetupType"=-
 
oh man, I knew it was something like that, I tried

-[HKEY_LOCAL_MACHINE\SYSTEM\Setup]
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back