Skip to content

Instantly share code, notes, and snippets.

@j-n-c
Last active May 13, 2026 10:46
Show Gist options
  • Select an option

  • Save j-n-c/1f82abb25a57d6ec19b403c95db7e86e to your computer and use it in GitHub Desktop.

Select an option

Save j-n-c/1f82abb25a57d6ec19b403c95db7e86e to your computer and use it in GitHub Desktop.
Install Windows 7 on PC with USB3.0 ports
Intro: If you have tried to install Windows 7 using a USB Flash Drive on a system that only has USB 3.0 ports, you might have found that you couldn’t get past the Language Select screen of the installer as your keyboard and mouse didn’t work.
The keyboard and mouse worked great in the BIOS, but as soon as the Windows 7 installation media loaded and presented that familiar Language Select screen, I had no cursor or keyboard.
1. Get the right USB 3.0 Drivers
For your installer to work with your computer, make sure you grab the proper USB 3.0 drivers. Look up your Motherboard’s drivers, see which ones you need and download them.
2. Extract the Drivers
- Once you download the drivers, we will need to make a folder for the drivers we want to slipstream into our installation media. For the purpose of this example lets just call it “USB3_Fix.”
- Inside that folder create two separate folders: “USB3” and “mount”.
- Now extract all the drivers into that USB3 folder.
3. Get the “boot.wim” and “install.wim” files
- Next, we need to get the files we need to install/add the drivers on. Open up your USB thumb drive that has your Windows 7 image on it and navigate to the Sources folder. Move the “boot.wim” file and “install.wim” into your “USB3 Fix” folder we created earlier.
4. Update the “boot.wim” and “install.wim” Files
- Open up your cmd shell as an administrator. (Click Start on Windows 7, or Windows Key + Q on Windows 8, type in “cmd” and then right-click on the cmd application and choose Run as Administrator.)
- Once open, navigate to the USB3_Fix folder in the cmd shell, and type in the following commands in this order to update the boot.wim file:
dism /mount-wim /wimfile:boot.wim /index:2 /mountdir:mount
dism /image:mount /add-driver:"usb3" /recurse
dism /unmount-wim /mountdir:mount /commit
- Next, do the same thing to the “install.wim” file. This file has a couple of different index values depending on what type of Windows you are installing. You can list all the indexes and their contents by typing in:
dism /Get-WimInfo /WimFile:install.wim
- It will give you the output of the different installers and their indexes. If you want to update all of them you will have to repeat the below process for the indexes you want to update.
dism /mount-wim /wimfile:install.wim /index:<index_number> /mountdir:mount
dism /image:mount /add-driver:"usb3" /recurse
dism /unmount-wim /mountdir:mount /commit
e.g.
dism /mount-wim /wimfile:install.wim /index:3 /mountdir:mount
dism /image:mount /add-driver:"usb3" /recurse
dism /unmount-wim /mountdir:mount /commit
- If you are encountering dism errors when trying to run the above commands make sure that the wim files unmounted successfully by running the following command:
dism /cleanup-wim
After that command finishes, try mounting the wim that was giving you errors again and adding the drivers.
5. Replace the “boot.wim” and “install.wim” files
- Now you’re done! Simply place the modified “boot.wim” and “install.wim” file back into the “sources” directory on your Win 7 iso bootable USB thumb drive and everything should work as expected!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment