
REG2SRC
REG2SRC stands for 'Registrykey to PCOM-sourcefile'-convertor.
Usage:
REG2SRC NEWKEY.REG
Doing this a NEWKEY.SRC is created.
Example:
Using regedit you exported the following 'MYKEY.REG'-hkey:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion] "USERNAME"="ExEd!" "COMPANYNAME"="ExEd!'s homebase"
After running the REG2SCR MYKEY.REG command the following MYKEY.SCR file is created:
; ; Created with REG2SRC: ; Job: 'testreg.reg'->'testreg.SCR'. ; #HKEY.REG "REGEDIT4 . . "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion] . ""USERNAME"="ExEd!" . ""COMPANYNAME"="ExEd!'s homebase" . - $run:regedit /s HKEY.REG $del:HKEY.REG ; ; End of conversion. ;
As you can see a temporary file 'HKEY.REG' is created, imported in the users registry and removed. The only line you need to add in your original source is: $INC:MYKEY.SRC and the registry update is implemented!