%xReg2Inf% Show Routine Code Author: MartinR
Version: 1 - Date: 2007-02-15
Example calls:
%xReg2Inf% -h1 -s22 "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "Small Fontsx--x"
%xReg2Inf% [-h?] [-sN] "FULLKEY" "STRING[x--x]"
%xReg2Inf% -D
Remarks:
Looks for registry keys whose names start with a specified string
and when found outputs entries to the INF file. Also returns the data
found in a variable %result% for later use by calling script.
Where the data contains the names of files which need to be loaded
to the recovery CD, the S switch saves the names and identifies
them with the PEBuilder folder supplied in N. This data is later output
to the INF using a call to %xReg2Inf% -D like in example 3 above.
%xReg2Inf% -D
Outputs data saved using the S switch above to the [SourceDisksFiles]
section of the INF file.
FULLKEY = Registry key where value is located
STRING = Opening letters of names of the values to be found.
x--x can be appended to the string to indicate that
a wildcard search is being carried out
-h? = Section header required in inf file
N = PEBuilder folder number for data saved for %xReg2Inf% -D