Here is the script I use to make the BCD file.
CODE
@ECHO OFF
Rem Creates BCD (boot configuration data) for x86 and x64 Windows PE 2.1 images
set BCD-File="%HOMEDRIVE%%HOMEPATH%\Desktop\BCD"
IF EXIST %BCD-File% del %BCD-File%
Bcdedit /createstore %BCD-File%
Bcdedit /store %BCD-File% /create {ramdiskoptions} /d "Ramdisk Options"
Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdidevice boot
Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x86" /application osloader') do set guid1=%%c
Bcdedit /store %BCD-File% /set %guid1% systemroot \Windows
Bcdedit /store %BCD-File% /set %guid1% detecthal Yes
Bcdedit /store %BCD-File% /set %guid1% winpe Yes
Bcdedit /store %BCD-File% /set %guid1% osdevice ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid1% device ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}
for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x64" /application osloader') do set guid2=%%c
Bcdedit /store %BCD-File% /set %guid2% systemroot \Windows
Bcdedit /store %BCD-File% /set %guid2% detecthal Yes
Bcdedit /store %BCD-File% /set %guid2% winpe Yes
Bcdedit /store %BCD-File% /set %guid2% osdevice ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid2% device ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /create {bootmgr} /d "Windows Vista Boot Manager"
Bcdedit /store %BCD-File% /set {bootmgr} timeout 30
Bcdedit /store %BCD-File% /set {bootmgr} displayorder %guid1% %guid2%
Bcdedit /store %BCD-File% /enum all
pause
Rem Creates BCD (boot configuration data) for x86 and x64 Windows PE 2.1 images
set BCD-File="%HOMEDRIVE%%HOMEPATH%\Desktop\BCD"
IF EXIST %BCD-File% del %BCD-File%
Bcdedit /createstore %BCD-File%
Bcdedit /store %BCD-File% /create {ramdiskoptions} /d "Ramdisk Options"
Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdidevice boot
Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x86" /application osloader') do set guid1=%%c
Bcdedit /store %BCD-File% /set %guid1% systemroot \Windows
Bcdedit /store %BCD-File% /set %guid1% detecthal Yes
Bcdedit /store %BCD-File% /set %guid1% winpe Yes
Bcdedit /store %BCD-File% /set %guid1% osdevice ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid1% device ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}
for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x64" /application osloader') do set guid2=%%c
Bcdedit /store %BCD-File% /set %guid2% systemroot \Windows
Bcdedit /store %BCD-File% /set %guid2% detecthal Yes
Bcdedit /store %BCD-File% /set %guid2% winpe Yes
Bcdedit /store %BCD-File% /set %guid2% osdevice ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid2% device ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /create {bootmgr} /d "Windows Vista Boot Manager"
Bcdedit /store %BCD-File% /set {bootmgr} timeout 30
Bcdedit /store %BCD-File% /set {bootmgr} displayorder %guid1% %guid2%
Bcdedit /store %BCD-File% /enum all
pause
/enum all spits out
CODE
Windows Boot Manager
--------------------
identifier {bootmgr}
description Windows Vista Boot Manager
displayorder {53bf03c1-fcea-11dc-a141-0016cfd9a77b}
{5515c9c1-fcea-11dc-a141-0016cfd9a77b}
timeout 30
Windows Boot Loader
-------------------
identifier {53bf03c1-fcea-11dc-a141-0016cfd9a77b}
device ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}
description WinPE x86
osdevice ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}
systemroot \Windows
detecthal Yes
winpe Yes
Windows Boot Loader
-------------------
identifier {5515c9c1-fcea-11dc-a141-0016cfd9a77b}
device ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}
description WinPE x64
osdevice ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}
systemroot \Windows
detecthal Yes
winpe Yes
Setup Ramdisk Options
---------------------
identifier {ramdiskoptions}
description Ramdisk Options
ramdisksdidevice boot
ramdisksdipath \boot\boot.sdi
--------------------
identifier {bootmgr}
description Windows Vista Boot Manager
displayorder {53bf03c1-fcea-11dc-a141-0016cfd9a77b}
{5515c9c1-fcea-11dc-a141-0016cfd9a77b}
timeout 30
Windows Boot Loader
-------------------
identifier {53bf03c1-fcea-11dc-a141-0016cfd9a77b}
device ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}
description WinPE x86
osdevice ramdisk=[boot]\sources\winpe_x86.wim,{ramdiskoptions}
systemroot \Windows
detecthal Yes
winpe Yes
Windows Boot Loader
-------------------
identifier {5515c9c1-fcea-11dc-a141-0016cfd9a77b}
device ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}
description WinPE x64
osdevice ramdisk=[boot]\sources\winpe_x64.wim,{ramdiskoptions}
systemroot \Windows
detecthal Yes
winpe Yes
Setup Ramdisk Options
---------------------
identifier {ramdiskoptions}
description Ramdisk Options
ramdisksdidevice boot
ramdisksdipath \boot\boot.sdi
The problem is when the HDD boots and gets to the image selection screen it labels both options as "Ramdisk Options" not "WinPE x86" and "WinPE x64" like I want it to.
What on earth am I doing wrong?