UEFI-boot from a Windows Install ISO

To UEFI-boot from a Windows 7 64-bit ISO, or Windows 8/8.1/10 32-bit and 64-bit ISOs, you must first convert each ISO to a FAT32 .imgPTN file using MakePartImage and the MPI_FAT32 Desktop shortcut. Do not use the MPI_NTFS Desktop shortcut because that will not UEFI-boot!
 
Your E2B USB drive can be formatted as FAT32 or NTFS (although exFAT and ext2 would also work as long as the .imgPTN files can be made contiguous!).
 
If the .imgPTN files are larger than 4GB, the E2B USB drive should not be formatted as FAT32.
Typically, the E2B USB drive is prepared as an NTFS USB drive, but the .imgPTN files are created using MPI_FAT32.
See How E2B Works for more details about how .imgPTN files work.
 
If a file inside the ISO is larger than 4GB, then see here for solutions.
 
Windows 7 32-bit and earlier Windows OS's do not support UEFI-booting.
 
Note: E2B v1.75+ allows you to add .imgPTN files to the \_ISO\WINDOWS\xxxx folders (except for the XP folder).
 

Windows 7 64-bit UEFI booting problem!

Unlike the later Windows Install ISOs, the Windows 7 64-bit standard Microsoft ISO does not contain the correct UEFI boot file that is required for USB disk booting (it only supports DVD booting).
 
First, check if the file '\EFI\BOOT\BOOTX64.EFI' is in your ISO (or inside .imgPTN file). If it is not present then it will not UEFI-boot from a USB drive and we need to obtain the file and add it to our .imgPTN file.
 
Run E2B and select the Windows 7 64-bit.imgPTN file that you have already created using MakePartImage. You can do this by running \_ISO\SWITCH_E2B.exe or run the 'QEMU_MENU_TEST (run as admin).cmd' script on the E2B USB drive until you see the Windows 64-bit CSM menu in the QEMU window and then quit QEMU and Eject the USB drive using the Windows System Tray icon, then re-connect it.
 
The contents of the E2B USB drive should now comprise of the Windows 7 64-bit payload.
 
First, if there is no \EFI\BOOT folder, copy the \EFI\MICROSOFT\BOOT folder to the \EFI folder.
 
If the '\EFI\BOOT\BOOTX64.EFI'  file is missing, you can copy the file to the USB dive by using one of the two methods below:
 
1. If you have access to a UEFI-enabled computer with Windows 7 (or higher) x64, copy the file C:\Windows\Boot\EFI\bootmgfw.efi to the USB drive's \EFI\BOOT\ folder and rename the file to \EFI\BOOT\BOOTX64.EFI
 
2. The file bootmgfw.efi can also be extracted from a Windows 7 (or higher) x64 Install DVD. It is located in the 2.7 GByte+ large archive \sources\Install.wim (and in the \sources\boot.wim file too usually) which should now be on your USB drive. The file can be extracted using an archiving program such as 7Zip. This file is usually located in the subdirectory "1" of the archive at 1\Windows\Boot\EFI\ under 7Zip. Copy the file to the USB drive's \EFI\BOOT  folder and rename the file to \EFI\BOOT\BOOTX64.EFI
 
   
The partition contents of the USB drive should now look like this (note the \EFI\BOOT\BOOTx64.efi boot file).
Only the bcd, bootx64.efi and fonts folder are required
 
The USB drive should now be UEFI-bootable and you should see the CSM menu now inform you that the BOOTX64.EFI file is present and also see a Clover boot option.
 
Note: Virtual Box does not support UEFI-booting of Windows 7 64-bit (Win8 and later work OK).
 

Adding Intel USB 3.0 drivers to Windows 7

 
Windows 7 install ISOs do not support USB 3.0 ports, so if you want to boot from a USB 3.0 port, you will need to add the USB 3.0 drivers.
 
Once you have made the .imgPTN file, you can 'switch' to it and then run the Intel Windows 7 USB 3.0 Creator utility. This will modify the install.wim and boot.wim files and add the Intel USB 3.0 drivers.
 
Note that this utility only adds the Intel USB 3.0 drivers for Intel chipsets; it does not add non-Intel USB 3.0 drivers.
 
There is also a video showing how to modify an ISO or USB drive here.

 

Tip: I find it easier to boot from any recent Windows Install ISO that supports USB 3.0 (e.g. Win 8.1 or Windows 10), and then run WinNTSetup.exe and install the Windows 7 ISO. There is no need to modify the Windows 7 64-bit ISO if you use this method.





More Info