I know how to delete a string, but that's all. To do anything else you need to make an installer as far as I know.
But then MS has all that automated deployment stuff - It could be worth checking out, as well as their msi compliler thingy...anyways here is an example .reg file.
It just covers the stuff I learned accidently while reading a .reg file and I made it to remind myself.
----start-----
REGEDIT4
;example reg file, note how comments work
;File must start with REGEDIT4 alone on first line, then a blank line.
;@ means default - @ must have no quotes, and it's value must be in quotes.
;string - (alpha-numeral)
;to delete a string, set its value to -. string is in quotes, it's value is not.
;dword (binary)
;hex (hexi-decimal)
;make sure there is a linefeed/carriage return after last entry (leave a blank line at bottom) or it wont work properly.
[HKEY_LOCAL_MACHINE\SOFTWARE\test-key]
@="test"
"string"="one"
"string2"=-
"dword"=dword:00000001
"hex"=hex:01
; you can put a comment anywhere in the file, as long as its on its own line starting with a semi-colon.
; dont FTP .REG files using ASCII mode, as carriage return/line feeds will be converted to UNIX style on UNIX based Servers.
; Tip: to import reg files without dialog boxes (useful for batch files) run "regedit /s name.reg" (silent mode)
[HKEY_LOCAL_MACHINE\SOFTWARE\test-key\sub-key]
"sub-key-string"="keys must be done in steps"
----end----
The word wrapping stuffs it up a bit as does copy/pasting, but you should get the idea.