Thanks mainly to this post, I finally installed Window 7 in UEFI mode from a USB drive.
Windows Setup will only install in UEFI mode if it boots in UEFI mode. As PCs transition from BIOS to UEFI many of them automatically fallback to BIOS mode if there’s no EFI-bootable partition.
The Microsoft USB/DVD tool, which modifies a USB key so that Windows 7 can be installed from it, unfortunately formats the USB key NTFS. EFI requires an FAT32 boot partition. So as soon as this particular system, a Fujitsu Lifebook UH572, tried to boot from the USB drive it switched into BIOS mode.
To install Windows 7 from a USB key in UEFI mode:
- Format the USB key specifying FAT32 as the filesystem type.
- Mount your Windows 7 ISO or DVD.
- Copy the contents of the ISO or DVD onto the USB.
- That’s right, you can use plain old Windows Explorer to copy the files.
- The directory structure on the USB key should be identical to the directory structure on the ISO/DVD when this step is done.
- Copy the \efi\microsoft\boot directory up 1 level – to \efi\boot.
- This directory was put in the wrong location on the ISO/DVD. A UEFI firmware expects to find a bootloader in \efi\boot.
- Download the bootmgfw.efi from this post and copy it to \efi\boot then rename it bootx64.efi.
- Boot your target machine from the USB drive.
- At the “Welcome to…” window, press SHIFT+F10 to open a command prompt.
- Clean the primary disk then convert it to GPT (convert gpt).
- Exit then reboot (again from the USB drive).
That’s it. Since the primary disk is GPT formatted and the USB key has \efi\boot\bootx64.efi Windows 7 setup should be running in UEFI mode.