I'm trying to setup BCD to show WinPE and WinXP. Things aren't working too well.
Here is the script I'm currently using.
To me it seems that when I add the entry for XP, it overwrites the PE entry.
Any and all help is appreciated.
CODE
@ECHO OFF
SET CD=D:
SET PHD=W:
SET XHD=C:
DISKPART -S DEFAULTPART.TXT
imagex /apply %CD%\sources\boot.wim 1 %PHD%
imagex /apply winxp.wim 1 %XHD%
xcopy %CD%\boot\*.* /e /f %PHD%\boot\
copy %CD%\bootmgr %PHD%
del %PHD%\boot\bcd
Bcdedit -createstore %PHD%\boot\BCD
Bcdedit -store %PHD%\boot\BCD -create {bootmgr} /d "Boot Manager"
Bcdedit -store %PHD%\boot\BCD -set {bootmgr} device boot
Bcdedit -store %PHD%\boot\BCD -create /d "WINPE" -application osloader
notepad winpeinst.bat
Bcdedit -store %PHD%\boot\BCD -set <GUID> osdevice partition=%PHD%
Bcdedit -store %PHD%\boot\BCD -set <GUID> device partition=%PHD%
Bcdedit -store %PHD%\boot\BCD -set <GUID> path \windows\system32\boot\winload.exe
Bcdedit -store %PHD%\boot\BCD -set <GUID> systemroot \windows
Bcdedit -store %PHD%\boot\BCD -set <GUID> winpe yes
Bcdedit -store %PHD%\boot\BCD -set <GUID> detecthal yes
Bcdedit -store %PHD%\boot\BCD -CREATE {LEGACY} /D "Windows XP"
Bcdedit -store %PHD%\boot\BCD -SET {LEGACY} DEVICE BOOT
Bcdedit -store %PHD%\boot\BCD -SET {LEGACY} PATH \NTLDR
Bcdedit -store %PHD%\boot\BCD -DISPLAYORDER {LEGACY} -ADDLAST
SET CD=D:
SET PHD=W:
SET XHD=C:
DISKPART -S DEFAULTPART.TXT
imagex /apply %CD%\sources\boot.wim 1 %PHD%
imagex /apply winxp.wim 1 %XHD%
xcopy %CD%\boot\*.* /e /f %PHD%\boot\
copy %CD%\bootmgr %PHD%
del %PHD%\boot\bcd
Bcdedit -createstore %PHD%\boot\BCD
Bcdedit -store %PHD%\boot\BCD -create {bootmgr} /d "Boot Manager"
Bcdedit -store %PHD%\boot\BCD -set {bootmgr} device boot
Bcdedit -store %PHD%\boot\BCD -create /d "WINPE" -application osloader
notepad winpeinst.bat
Bcdedit -store %PHD%\boot\BCD -set <GUID> osdevice partition=%PHD%
Bcdedit -store %PHD%\boot\BCD -set <GUID> device partition=%PHD%
Bcdedit -store %PHD%\boot\BCD -set <GUID> path \windows\system32\boot\winload.exe
Bcdedit -store %PHD%\boot\BCD -set <GUID> systemroot \windows
Bcdedit -store %PHD%\boot\BCD -set <GUID> winpe yes
Bcdedit -store %PHD%\boot\BCD -set <GUID> detecthal yes
Bcdedit -store %PHD%\boot\BCD -CREATE {LEGACY} /D "Windows XP"
Bcdedit -store %PHD%\boot\BCD -SET {LEGACY} DEVICE BOOT
Bcdedit -store %PHD%\boot\BCD -SET {LEGACY} PATH \NTLDR
Bcdedit -store %PHD%\boot\BCD -DISPLAYORDER {LEGACY} -ADDLAST