It took some time but I finally found the answer. I will be posting it on various forums. Feel free to spread the news. If you wish to contact me please email me(Steve) at reizend@directbox.com . If you do spread the word credit is always appreciated.
how to flat iso for winpe2.0
call microsoft support and after some wrestling get the unpublished hot fix for KB928570. They will try to convice you that it doesn't exist yet but you can get it. If you try to get support from Microsoft on how to install the hot fix you will get endless hours of them trying to convince you it is for vista. (You get an error trying to install it on vista)
import the hotfix cab file into BDD as an os package or do the following if your like me and want to make your own disk with custom scripts
Code:
copype x86 flatdisk
cd flatdisk
imagex /mountrw winpe.wim 1 mount
peimg /import="Windows6.0-KB928570-x86.cab" /image=mount
peimg /install=*HTA* /image=mount
peimg /install=*WMI* /image=mount
peimg /install=*XML* /image=mount
peimg /install=*Scripting* /image=mount
peimg /install=*KB928570* /image=mount
Now is the time to load any drivers that may be needed. Note that if the mass storage driver is missing WinPe will blue screen when it can no longer find the CDROM
Code:
peimg /inf="drivers.inf" /image=mount
Code:
peimg /prep /image=mount /f
xcopy ISO\bootmgr mount
mkdir mount\bootfile:///usr/share/ubuntu-artwork/home/index.html
xcopy ISO\boot\*.* mount\boot /E /S /H /Y
NOTE bcdedit is not in path by default
Code:
bcdedit /store mount\boot\bcd /set {default} device boot
bcdedit /store mount\boot\bcd /set {default} osdevice boot
Now is the time to copy scripts and edit Windows\System32\startnet.cmd to launch the first script
Afterwards capture an iso
Code:
oscdimg -u2 -m -bETFSBOOT.COM mount flatdisk.iso
Finally save the wim image for future use
Code:
imagex /unmount mount /commit
Burn flatdisk.iso and boot it
Bookmarks