How to Create a Bootable UEFI USB Flash Drive for Installing Windows 7 and Windows 8

Information
This tutorial will show you how to create a Windows 7 or Windows 8 installation bootable USB flash drive for UEFI from either a Windows 7 or Windows 8 installation ISO or DVD.

Note
Requirements: - At least a 4GB USB flash drive
- 64-bit Windows 7 ISO or DVD (If you want to install Windows 7)
- 64-bit Windows 8 ISO or DVD (If you want to install Windows 8)
- 32-bit is not supported.
EXAMPLE: UEFI Bootable USB Flash Drive
NOTE: This is it listed in the motherboard's boot menu.

OPTION ONE

To Create a Bootable UEFI USB Flash Drive using Free Program "Rufus"
1. Download the latest version of Rufus at the link below, and save it's .exe file to your desktop.
NOTE: This is a standalone exe file that doesn't install anything to your PC.
2. Connect your USB flash drive if you have not already.
3. Run the rufus_v1.3.2.exe file, and click/tap on Yes if prompted by UAC.
4. Set Rufus with the settings below: (see screenshot below step 5)
- Under Device, select the USB flash drive you want to format and use.
- Under Partition scheme and target system type, select GPT partition scheme for UEFI computer.
- Under File system, select FAT32 (Default).
- Under Cluster size, select the (Default) (ex: 16 kilobytes or 4096 bytes) it has listed.
- Under Format Options, check Quick format.
- Under Format Options, check Create a bootable disk using, click/tap on the browse icon
to navigate to and select your 64-bit Windows 7 or Windows 8 ISO file.
- Under Format Options, check Create extended label and icon files.
- Under New volume label, you can enter any name you like for the USB flash drive, or leave the default name.
5. When ready, click/tap on Start. (see screenshot below)
6. Click/tap on
OK to confirm. (see screenshot below)
7. Rufus will now start creating the bootable UEFI USB flash drive. (see screenshot below)
8. When Rufus is "DONE", you can close Rufus. (see screenshot below)
NOTE: It could take a little while to finish.
9. You are now ready to do a clean install of Windows 7 or Windows 8 using UEFI with your bootable UEFI USB flash drive.

OPTION TWO

To Manually Create a Bootable UEFI USB Flash Drive
1. Connect the USB flash drive.
2. Open an elevated command prompt in
Windows 7 or
Windows 8.
3. In the elevated command prompt, type the commands below one at a time and press Enter after each one. (see screenshot below step 5)
4. Make note of the Disk # (ex: Disk 4) for the USB flash drive. (see screenshot below step 5)
WARNING: It is critical that you use the correct disk #. If you do not, then you could delete the wrong drive below and lose everything on it.
5. In the elevated command prompt, type the commands below one at a time and press Enter after each one. (see screenshot below)
NOTE: Substitute # in the first command with the actual disk # from step 4 above. For example: select disk 4
- select disk #
- clean
- create partition primary
- format fs=fat32 quick
- active
- assign
- list volume
- exit
6. Make note of the volume letter (ex: K) for the USB flash drive in the command prompt. (see screenshot above)
7. Do step 8, 9, or 10 below depending on if you are using a Windows 7/8 ISO or DVD.

Warning
It has been reported that using the downloaded
Windows 8 upgrade ISO does not always give you an UEFI bootable USB option in the boot menu.
If this happens to you, then use the
ESD-TO-ISO.exe program created by our member
Simon (SIW2) below to create an ISO that will work with UEFI. Afterwards, start this tutorial over using this new ISO instead.
See OPTION TWO here: Windows 8 Upgrade ISO - Download or Create
A) Open File Explorer, navigate to the .iso file, right click or press and hold on the .iso file, then click/tap on Mount. (see screenshot below)
B) The mounted .iso file will now automatically open. Select all files in it, right click or press and hold on the selected files, click/tap on Send to and the Removable Disk for your USB flash drive letter (ex: K) from step 6 above. (see screenshot below)
C) This could take a bit to copy the ISO contents to the USB.
D) When finished, go to step 11 below.
A) If you have not already, you will need to download and install
7-Zip.
NOTE: You can use any program that performs the same function to extract or mount an ISO, but I just find 7-Zip easier to use.
B) Open Windows Explorer, navigate to the .iso file, right click on the .iso file, then click on
7-Zip and
Extract files. (see screenshot below)
C) In the Extract dialog, click on the browse button, select the Removable Disk for your USB flash drive letter (ex: K) from step 6 above, and click on OK, and OK. (see screenshots below)
D) This could take a bit to copy the ISO contents to the USB.
E) When finished, go to step 11 below.
10. If Using a Windows 7 or Windows 8 Installation DVD
A) Insert the Windows 7 or Windows 8 installation DVD into the CD/DVD drive.
B) In the Computer window, open the DVD. (see screenshot below)
C) Select all files in it, right click or press and hold on the selected files, click/tap on Send to and the Removable Disk for your USB flash drive letter (ex: K) from step 6 above. (see screenshot below)
D) This could take a bit to copy the DVD contents to the USB.
E) When finished, go to step 11 below.
11. If Using 64-bit Windows 7 
Note
Thanks to
theog for this step.
You do not need to do this step unless you are creating a 64-bit Windows 7 UEFI USB flash drive.
If you are not, then go to
step 12 below instead.
A) On the USB flash drive, "copy" the efi\microsoft\boot folder up one level into the efi folder as efi\boot. (see screenshot below)
B) If you have not already, download and install the free program
7-Zip, then run 7-Zip.
C) In 7-Zip, navigate to the
sources\install.wim\1\Windows\Boot\EFI\bootmgfw.efi on the
USB flash drive, select the
bootmgfw.efi file,
copy it to your
desktop, click/tap on
OK, and close 7-Zip. (see screenshot below)
D) Rename the bootmgfw.efi file on your desktop to bootx64.efi.
E) Copy/Move the renamed bootx64.efi file into the efi/boot folder (step 11A) on the USB flash drive.
F) Go to step 12 below.
12. You are now ready to do a clean install of Windows 7 or Windows 8 using UEFI with your bootable UEFI USB flash drive.
That's it,
Shawn