%Reg2Inf% Show Routine Code Author: MartinR
Version: 1 - Date: 2007-02-15
Example calls:
%REG2INF% -h5 "HKLM\Software\Microsoft\Windows NT\CurrentVersion" "RegisteredOwner"
%REG2INF% -h1 -S "HKLM\SOFTWARE\CyberLink\PowerDVD"
%REG2INF% [-h?] [-s] "FULLKEY" ["VALUE"]
Remarks:
Extracts a single value from a registry key and optionally all its values and those of its subkeys, outputting the data to the plugin INF file.
FULLKEY = Registry key where value is located
VALUE = Registry value to extract. If not defined, all values in the key are processed. For Default values, VALUE is "".
-h? = Header selection see below
-s = All subkey values are to be extracted.
Setting the output mode for header etc.:
-h1 = blank + text + sectionHeader + ENTRY
-h2 = blank + sectionHeader + ENTRY
-h3 = blank + ENTRY
-h4 = sectionHeader + ENTRY
-h5 = no heading at all + ENTRY
-h6 = text + ENTRY
blank
Outputs a blank line.
text
Prints a line of text from a variable %text% set up in the calling script.
Do NOT use special characters like parentheses or redirection characters. They will cause the script to crash.
sectionHeader
Outputs [Software.AddReg] etc.
The options are processed in the exact order shown in the above table.