Paraglider BartPE Plugins

ConvReg.exe

This is a utility to scan reg files and replace [HKEY_LOCAL_MACHINE\System\ControlSet001 with [HKEY_LOCAL_MACHINE\SYS_PE\ControlSet001.

Usage:

ConvReg <Path To Reg Directory>\*.reg

It usually will be invoked by configuring PeBuilder to run a command file instead of mkisofs.

Assuming a command file build.cmd is used then the [BuildISO] section of PEBuilder.inf should be changed to:

[BuildISO]
exec="build.cmd ""@IsoFile@"" ""@OutDir@"""

An example build.cmd file can be found in the zip file:

if X%1X == XX ( echo Missing parameter & goto :end) 
if X%2X == XX ( echo Missing parameter & goto :end) 
            
convReg *.reg

reg.exe load HKLM\SYS_PE %2\i386\system32\setupreg.hiv > NUL 
if errorlevel 1 goto :end

for %%f in (*.reg) Do regedit /s %%f > NUL

if exist setupreg.hiv del setupreg.hiv > NUL 
reg.exe save HKLM\SYS_PE setupreg.hiv > NUL 
if errorlevel 1 goto :end

reg.exe unload HKLM\SYS_PE >NUL 
if errorlevel 1 goto :end

copy setupreg.hiv %2\i386\system32\setupreg.hiv > NUL 
            
del setupreg.hiv > NUL

mkisofs.exe -iso-level 4 -volid "BartPE" -A PEBUILDER/MKISOFS 
            -sysid "Win32" -b bootsect.bin -no-emul-boot 
            -boot-load-size 4 -hide bootsect.bin 
            -hide boot.catalog -o %1 %2
    
:end