Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regedit file format

I would like to document the file format of regedit utility, so data can be merged into the registry.

From the command-line you can (silently) merge data from a batch file like this:

regedit /s file.reg

Exporting from a subkey goes like this:

regedit /e file.reg "HKEY_XX\key"
like image 349
doekman Avatar asked Dec 02 '08 14:12

doekman


2 Answers

Remove keys and values by using the minus sign (-).

REGEDIT4
[-HKEY_CURRENT_USER\RemoveThisTree]
[HKEY_CURRENT_USER\RemoveValue]
"valueName"=-

References

  • Minus sign to delete mentioned here: MSKB310516: How to add, modify, or delete registry subkeys and values by using a .reg file (Archived here.)

  • Minus sign to delete, semicolon to comment and IF/ENDIF mentioned here: MSDN: Registry File (Compact 2013) (Archived here.)

like image 150
doekman Avatar answered Dec 03 '22 13:12

doekman


Documenting the .reg file format is really more Microsoft's job.

like image 29
P Daddy Avatar answered Dec 03 '22 14:12

P Daddy