You do not need to load/unload hives for changing the windows PE
registry. There is builtin support for modifications to registry witin
the Windows PE tools structure.
The mkimg.cmd script that executes bldhives and actually builds
(compiles) the registry hives from info in the winpe*.inf files (the
winpe*.inf does not get copied from the cd when running mkimg).
For a ramdisk you need to modify the WinPESys.inf file.
For more info on how, see this link
http://www.microsoft.com/technet/tr...echnet/itsolutions/edc/pak/build/EDCBLD05.ASP
(search for WinPESys.inf)
I do recommend using the Q-soft ramdisk since it is easier to deploy
than the Microsoft ramdisk above (from the DDK)
You would also like to aquire a ramdisk driver that supports more than
64 MB of RAM
En eval version can be downloaded here
http://users.compaqnet.be/cn181612/RAMDisk/RAMDisk_Evaluation_5290PRO.zip
(the standard version of this ramdisk is the one used in Bart
Lagerweij's PE Builder)
Another example of making changes to the registry:
To change the background image in Windows PE, you change this row in
the winpedef.inf before running mkimg.
HKCU,"Control Panel\desktop", "WallPaper", REG_EXPAND_SZ,
"%systemroot%\system32\winpe.bmp"
regards
Johan Arwidmark
Windows User Group - Nordic
http://www.wug-nordic.net