Add Windows Install ISOs to the (Main) Menu
Note: If the file DEFAULT.XML exists in the same folder as the ISO, then the DEFAULT.XML file will be automatically picked by E2B (E2B v1.B0+). The DEFAULT.XML file can be a 'no key' file if you wish.
# Use this for Vista/SVR2K8R2/Win7 ISOsiftitle [if exist /_ISO/WINDOWS/Win7/Win7_32_SP1.iso] Install Win7 SP1 32-bit \n Install from the ISOset MFOLDER=/_ISO/WINDOWS/WIN7set ISO=Win7_32_SP1.isoset HDG=Windows 7 Menu/%grub%/RunVista.g4b %MFOLDER%boot# use this for Win8/8.1/SVR2012/WIN10\SVR2016 ISOsiftitle [if exist /_ISO/WINDOWS/Win8/Win8.1_32.iso] Install Win8.1 32-bit \n Install from the ISOset MFOLDER=/_ISO/WINDOWS/WIN8set ISO=Win8.1_32.isoset HDG=Windows 8 Menu/%grub%/RunWin8.g4b %MFOLDER%boot
If you use a non-standard folder, you will also need to copy or add .xml and .key files from the \_ISO\WINDOWS\xxxx folders.
# NOWMENU causes a Windows Install sub-sub menu to return back to the Main menu rather than return to the Windows Install menuset NOWMENU=1
Examples with XML file specified (v1.61+)
iftitle [if exist /_ISO/WINDOWS/Win7/Windows_7.1_EN-US_x86.ISO] Install Win7 32-bit \n Install from the ISOset MFOLDER=/_ISO/WINDOWS/WIN7set ISO=Windows_7_x86.ISOset XML=# Specify full path of XML file (e.g. %MFOLDER%/Win8\ has\ spaces\ in\ name.xml)# OR to choose XML or Product Key, comment out next lineset XML=%MFOLDER%/Sample.xmlset NOWMENU=1/%grub%/RunVista.g4b %MFOLDER% %XML%bootiftitle [if exist /_ISO/WINDOWS/Win8/Windows_8.1_EN-US_x86.ISO] Install Win8.1 32-bit \n Install from the ISOset MFOLDER=/_ISO/WINDOWS/WIN8set ISO=Windows_8.1_EN-US_x86.ISOset XML=# Specify XML file in MFOLDER folder (e.g. Win8\ has\ spaces\ in\ name.xml)# OR to choose XML or Product Key, comment out next lineset XML=Sample.xmlset NOWMENU=1/%grub%/RunWin8.g4b %MFOLDER% %XML%boot
title Install XP Pro 32-bit - Step 1\n Remember to select an AHCI driver (if required) \n AND FiraDisk AND WinVBlock drivers (using F6)!\n You must reboot to Easy2Boot again and run STEP 2 afterwards.set XPISO=MyXPPro.isoset MFOLDER=/_ISO/WINDOWS/XP/%grub%/XPStep1.g4bboottitle Install XP Pro 32-bit - Step 2 (512MB+ systems)\n 2nd phase of setup (most reliable).\n This will complete the install and reboot from the hard disk.\n It requires at least 512MB of RAM to hold the ISO file.set XPISO=MyXPPro.isoset MFOLDER=/_ISO/WINDOWS/XP/%grub%/XPStep2.g4bboottitle Install XP Pro 32-bit - Step 2 (Low RAM systems)\n Faster - use this if not enough system memory (set XPISO=MyXPPro.isoset MFOLDER=/_ISO/WINDOWS/XP/%grub%/XPStep2LowRam.g4bboot
Custom installs
If you want to have individual menu entries for a Vista/7/SVR2K8R2/Win8/SVR2012 Install ISO using a predefined XML file or specific Product Key using your own code, look at the Win_Vista_7_2K8R2_Direct.mnu and Win_Win8_2012_Direct.mnu files in the \_ISO\docs\Sample mnu Files folder for examples.
Note that Win8/2012/10 installs nearly always require a product key (even those that don't normally ask for one such as evaluation versions!), unless the ISO contents have been modified and a custom EI.CFG file has been added, or E2B uses WIMBOOT to boot the ISO (v1.A8+).
Change the ComputerName and UserName each time
It is possible to make a .mnu file which will prompt you for a ComputerName and UserName before you start the install, by dynamically modifying the XML file.
This means you do not need different XML files for different Users.
See here for details about using the WIN10_Prompt_for_PCNAME_and_UNAME.mnu file in the \_ISO\docs\Sample mnu Files\Windows folder.
You can also modify the .mnu file to set a different ProductKey. This would allow you to have several different .mnu files to install Windows with different UserNames, ComputerNames and ProductKeys (e.g. Home/Pro Editions) but using the same source XML file.
See also WIN10_Prompt_for_UNAME_auto_serial_COMPNAME.mnu for a method of setting the ComputerName to contain the Serial Number of the system.
More information is available in my eBook on Windows Installation.