Jump to content

bootmgr based Multiboot DVD ( currently XP & Vista)


Recommended Posts

I meant it was nlited when it did work...

It's still nlited, but I don't recall which version I used when it worked as this was several months ago and I'm sure I've changed several removals since then.

Link to post
Share on other sites
  • 1 month later...

I figured out how to get multiple Win PE 2.0 WIMs in the menu with help from the posting here:

http://www.deployvista.com/Blog/JohanArwidmark/tabid/78/EntryID/27/Default.aspx

This is what I ended up with:

Rem Creates BCD (boot configuration data) for Windows 2003 - PE 2.0 DVD
set bcdedit=D:\multiboot\boot\bcdedit
set BCD-File=D:\multiboot\boot\bcd
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

set A=Windows 2003 R2 - Standard Edition - Automated Install
set B=Windows 2003 R2 - Standard Edition - Manual install
set C=Windows 2003 R2 - Standard Edition EVAL License - Automated Install
set D=Hardware Setup (Windows PE)
set E=Quick Restore (Windows PE)

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%A%"') do set guida=%%c
%bcdedit% /store %BCD-File% /set %guida% device boot
%bcdedit% /store %BCD-File% /set %guida% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guida% DESCRIPTION "%A%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%B%"') do set guidb=%%c
%bcdedit% /store %BCD-File% /set %guidb% device boot
%bcdedit% /store %BCD-File% /set %guidb% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guidb% DESCRIPTION "%B%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%C%"') do set guidc=%%c
%bcdedit% /store %BCD-File% /set %guidc% device boot
%bcdedit% /store %BCD-File% /set %guidc% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guidc% DESCRIPTION "%C%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /d "%D%" /application osloader') do set guidd=%%c
%bcdedit% /store %BCD-File% /set %guidd% systemroot \Windows
%bcdedit% /store %BCD-File% /set %guidd% detecthal Yes
%bcdedit% /store %BCD-File% /set %guidd% winpe Yes
%bcdedit% /store %BCD-File% /set %guidd% osdevice ramdisk=[boot]\sources\hwsetup.wim,{ramdiskoptions}
%bcdedit% /store %BCD-File% /set %guidd% device ramdisk=[boot]\sources\hwsetup.wim,{ramdiskoptions}

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /d "%E%" /application osloader') do set guide=%%c
%bcdedit% /store %BCD-File% /set %guide% systemroot \Windows
%bcdedit% /store %BCD-File% /set %guide% detecthal Yes
%bcdedit% /store %BCD-File% /set %guide% winpe Yes
%bcdedit% /store %BCD-File% /set %guide% osdevice ramdisk=[boot]\sources\restore.wim,{ramdiskoptions}
%bcdedit% /store %BCD-File% /set %guide% device ramdisk=[boot]\sources\restore.wim,{ramdiskoptions}

%bcdedit% /store %BCD-File% /create {bootmgr} /d "Windows Vista Bootloader"
:: %bcdedit% /store %BCD-File% /set {bootmgr} timeout 30
%bcdedit% /store %BCD-File% /set {bootmgr} displayorder %guida% %guidb% %guidc% %guidd% %guide%
%bcdedit% /store %BCD-File% /enum all

cdimage.exe -lMultiBoot_Test -u1 -e -oi -m -h -bD:\multiboot\boot\etfsboot.com D:\multiboot "multiboot_test.iso"

Now everything works nicely. :thumbup

Thansk for the script :)

for me it reports errors on the

 [b]for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /d "%D%" /application osloader') do set guidd=%%c[/b]

Lines, i've modded them to :

for /f "[i][b]tokens=2[/b][/i]" %%a in ('%bcdedit% /store %BCD-File% /create /d "%D%" /application osloader') do set guidd=[b]%%[i]a[/i][/b]

I'm using a french bcdedit version :)

Link to post
Share on other sites
  • 5 weeks later...

help me

Before I worked perfectly!

I would be getting an NTDETECT failed message when I start my XP PRO install off of my hard disk, but not in VMware off of a .iso file would you? I used the bcd commands in this order:

bcdedit /store H:\boot\bcd /create {ntldr} /d "Windows XP Professional"

bcdedit /store H:\boot\bcd /set {ntldr} device boot

bcdedit /store H:\boot\bcd /set {ntldr} path \I386\SETUPLDR.BIN

bcdedit /store H:\boot\bcd /displayorder {ntldr} /addfirst

bcdedit /store H:\boot\bcd /set {bootmgr} displaybootmenu yes

bcdedit /store H:\boot\bcd /set {default} description "Windows Vista"

bcdedit /store H:\boot\bcd /default {ntldr}

thank you

Edited by sanyinet
Link to post
Share on other sites
  • 3 weeks later...
  • 8 months later...
I figured out how to get multiple Win PE 2.0 WIMs in the menu with help from the posting here:

http://www.deployvista.com/Blog/JohanArwidmark/tabid/78/EntryID/27/Default.aspx

This is what I ended up with:

Rem Creates BCD (boot configuration data) for Windows 2003 - PE 2.0 DVD
set bcdedit=D:\multiboot\boot\bcdedit
set BCD-File=D:\multiboot\boot\bcd
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

set A=Windows 2003 R2 - Standard Edition - Automated Install
set B=Windows 2003 R2 - Standard Edition - Manual install
set C=Windows 2003 R2 - Standard Edition EVAL License - Automated Install
set D=Hardware Setup (Windows PE)
set E=Quick Restore (Windows PE)

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%A%"') do set guida=%%c
%bcdedit% /store %BCD-File% /set %guida% device boot
%bcdedit% /store %BCD-File% /set %guida% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guida% DESCRIPTION "%A%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%B%"') do set guidb=%%c
%bcdedit% /store %BCD-File% /set %guidb% device boot
%bcdedit% /store %BCD-File% /set %guidb% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guidb% DESCRIPTION "%B%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%C%"') do set guidc=%%c
%bcdedit% /store %BCD-File% /set %guidc% device boot
%bcdedit% /store %BCD-File% /set %guidc% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guidc% DESCRIPTION "%C%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /d "%D%" /application osloader') do set guidd=%%c
%bcdedit% /store %BCD-File% /set %guidd% systemroot \Windows
%bcdedit% /store %BCD-File% /set %guidd% detecthal Yes
%bcdedit% /store %BCD-File% /set %guidd% winpe Yes
%bcdedit% /store %BCD-File% /set %guidd% osdevice ramdisk=[boot]\sources\hwsetup.wim,{ramdiskoptions}
%bcdedit% /store %BCD-File% /set %guidd% device ramdisk=[boot]\sources\hwsetup.wim,{ramdiskoptions}

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /d "%E%" /application osloader') do set guide=%%c
%bcdedit% /store %BCD-File% /set %guide% systemroot \Windows
%bcdedit% /store %BCD-File% /set %guide% detecthal Yes
%bcdedit% /store %BCD-File% /set %guide% winpe Yes
%bcdedit% /store %BCD-File% /set %guide% osdevice ramdisk=[boot]\sources\restore.wim,{ramdiskoptions}
%bcdedit% /store %BCD-File% /set %guide% device ramdisk=[boot]\sources\restore.wim,{ramdiskoptions}

%bcdedit% /store %BCD-File% /create {bootmgr} /d "Windows Vista Bootloader"
:: %bcdedit% /store %BCD-File% /set {bootmgr} timeout 30
%bcdedit% /store %BCD-File% /set {bootmgr} displayorder %guida% %guidb% %guidc% %guidd% %guide%
%bcdedit% /store %BCD-File% /enum all

cdimage.exe -lMultiBoot_Test -u1 -e -oi -m -h -bD:\multiboot\boot\etfsboot.com D:\multiboot "multiboot_test.iso"

Now everything works nicely. :thumbup

When I do this, every menu item that shows in the Windows Boot Manager is named "Ramdisk options". Thoughts?

Link to post
Share on other sites
I figured out how to get multiple Win PE 2.0 WIMs in the menu with help from the posting here:

http://www.deployvista.com/Blog/JohanArwidmark/tabid/78/EntryID/27/Default.aspx

This is what I ended up with:

Rem Creates BCD (boot configuration data) for Windows 2003 - PE 2.0 DVD
set bcdedit=D:\multiboot\boot\bcdedit
set BCD-File=D:\multiboot\boot\bcd
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

set A=Windows 2003 R2 - Standard Edition - Automated Install
set B=Windows 2003 R2 - Standard Edition - Manual install
set C=Windows 2003 R2 - Standard Edition EVAL License - Automated Install
set D=Hardware Setup (Windows PE)
set E=Quick Restore (Windows PE)

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%A%"') do set guida=%%c
%bcdedit% /store %BCD-File% /set %guida% device boot
%bcdedit% /store %BCD-File% /set %guida% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guida% DESCRIPTION "%A%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%B%"') do set guidb=%%c
%bcdedit% /store %BCD-File% /set %guidb% device boot
%bcdedit% /store %BCD-File% /set %guidb% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guidb% DESCRIPTION "%B%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /application OSLOADER /d "%C%"') do set guidc=%%c
%bcdedit% /store %BCD-File% /set %guidc% device boot
%bcdedit% /store %BCD-File% /set %guidc% path \STDO\SETUPLDR.BIN
%bcdedit% /store %BCD-File% /set %guidc% DESCRIPTION "%C%"

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /d "%D%" /application osloader') do set guidd=%%c
%bcdedit% /store %BCD-File% /set %guidd% systemroot \Windows
%bcdedit% /store %BCD-File% /set %guidd% detecthal Yes
%bcdedit% /store %BCD-File% /set %guidd% winpe Yes
%bcdedit% /store %BCD-File% /set %guidd% osdevice ramdisk=[boot]\sources\hwsetup.wim,{ramdiskoptions}
%bcdedit% /store %BCD-File% /set %guidd% device ramdisk=[boot]\sources\hwsetup.wim,{ramdiskoptions}

for /f "tokens=1-3" %%a in ('%bcdedit% /store %BCD-File% /create /d "%E%" /application osloader') do set guide=%%c
%bcdedit% /store %BCD-File% /set %guide% systemroot \Windows
%bcdedit% /store %BCD-File% /set %guide% detecthal Yes
%bcdedit% /store %BCD-File% /set %guide% winpe Yes
%bcdedit% /store %BCD-File% /set %guide% osdevice ramdisk=[boot]\sources\restore.wim,{ramdiskoptions}
%bcdedit% /store %BCD-File% /set %guide% device ramdisk=[boot]\sources\restore.wim,{ramdiskoptions}

%bcdedit% /store %BCD-File% /create {bootmgr} /d "Windows Vista Bootloader"
:: %bcdedit% /store %BCD-File% /set {bootmgr} timeout 30
%bcdedit% /store %BCD-File% /set {bootmgr} displayorder %guida% %guidb% %guidc% %guidd% %guide%
%bcdedit% /store %BCD-File% /enum all

cdimage.exe -lMultiBoot_Test -u1 -e -oi -m -h -bD:\multiboot\boot\etfsboot.com D:\multiboot "multiboot_test.iso"

Now everything works nicely. :thumbup

When I do this, every menu item that shows in the Windows Boot Manager is named "Ramdisk options". Thoughts?

Problem solved. Found in another thread here - the BOOTMGR.EXE from the latest WAIK is the culprit. Using the BOOTMGR.EXE from the older WAIK displays the menu items correctly.

The working BOOTMGR I have is version 6.0.6000.16386.

The non-working BOOTMGR is version 6.0.6001.18000.

Edited by Stratuscaster
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...