Create a Windows 7 USB flash installation with new drives for new MB's

Page 1 of 3 123 LastLast

  1. Posts : 7,351
    Windows 7 HP 64
       #1

    Create a Windows 7 USB flash installation with new driver for new MB's


    This tutorial is to help to install Windows 7 64 bits on new MB that has USB 3 and other devices that requires drivers that are not in Windows 7 installation disk.

    Please read it first till the end before you begin to work.
    At the end you'll find the PDF of this tutorial and a the Drivers7.zip folder with the commands on it.

    I’d a hard time to install Windows 7 64 bits on my new Gigabyte Z170 MB because Windows 7 installation disk doesn’t have Intel USB 3 and new SATA (AHCI and / or RAID) drivers.
    If you try to install Windows 7 without these drivers you will not have mouse (and keyboard, if it’s connected to USB port) and you will not see your disks.

    Gigabyte provided a Windows USB Installation toll, which is intended to install USB 3 and NVMe disk drivers. It didn’t work as it should.
    I guess, one reason was that my Windows 7 installation disk wasn’t SP1.
    After downloading a Windows 7 SP1 installation disk from MS, it did install the USB 3 driver but did NOT my SATA (AHCI and / or RAID) drivers to the install wizard.

    So I began to Google to find some other options.
    I found on this site: http://codeabitwiser.com/2014/03/how-to-install-windows-7-with-only-usb-3-0-ports/ that gave me a line to follow (thanks to Travis Payton). It didn’t install other drivers, so I had to adapt it to my needs. You should read it and also this https://www.msigeek.com/2635/unmount-and-clean-up-a-wim-image-using-deployment-image-servicing-and-management-dism .

    Here is my tutorial. My MB is a GA Z170, so it worked for my MB. If you have AMD or another kind of Intel MB, you will have to adapt it to your needs. You will also need a computer with Windows installed.

    Hope it help you to build a Windows 7 installation disk with USB 3, new SATA (AHCI and / or RAID) and any other drivers to install or maintain windows 7.

    - First of all, update your new MB BIOS.
    - Configure the BIOS and set Storage Boot and PCI device to UEFI and XHCI Hand off to enable.
    - Disable Secure Boot. It may be as Operating System (OS) = Other and / or CSM = Enable
    - Disable Fast Boot. Fast boot disable USB ports and other hardware till OS is booted. You can enable it after Windows is installed.


    On the computer with Windows installed:

    - If your Windows 7 installation disk isn’t SP1, download it on MS site:
    Windows 7 iso download:
    https://www.microsoft.com/en-us/software-download/windows7

    https://www.heidoc.net/php/Windows%2...Downloader.exe

    - From your MB manufacture site, download the latest chipset USB 3, SATA drivers (32 and 64 bits) and any other drivers you need (like MVMe disk driver). They must be multi file type (*.inf, *.cat, *.sys) and not a *.exe, *.msi or *.msu type.

    Some explanations: On the Windows 7 installation disk there are two wim files on \sources: Boot.wim and Install.wim. We are going to work on these two files.

    - Boot.wim has the wizard for maintenance and to install Windows. It has two “programs” and we are going to work on both:
    Windows PE (index 1).
    Windows Setup (index 2).

    - Install.wim has the four Windows 7 brands and we are going to work on the one you want to install:
    Windows 7 Homebasic (index 1)
    Windows 7 Homepremium (index 2)
    Windows 7 Professional (index 3)
    Windows 7 Ultimate (index 4)

    - Create a folder tree (any place you like) as below:

    Create a Windows 7 USB flash installation with new drives for new MB's-tree.jpg


    - Extract the Sata, USB 3 files and any other drivers (like MVMe disk driver) you have downloaded.

    - Place the 32 and 64 bits Sata files as extracted (it can have folders and sub folders) on the Drives7\Boot\Sata folder.
    - Place the 32 and 64 bits USB 3 files as extracted (it can have folders and sub folders) on the Drives7\Boot\USB3 folder.
    - Place the 32 and 64 bits other files as extracted (it can have folders and sub folders) on the Drives7\Boot\other folder. If you don’t need any other drivers, leave it blank.

    Create a Windows 7 USB flash installation with new drives for new MB's-boot.jpg


    - Place the 64 bits Sata files as extracted (it can have folders and sub folders) on the Drives7\ Install \Sata folder.
    - Place the 64 bits USB 3 files as extracted (it can have folders and sub folders) on the Drives7\ Install \USB3 folder.
    - Place the 64 bits other files as extracted (it can have folders and sub folders) on the Drives7\ Install \other folder. If you don’t need any other drivers, leave it blank.

    Create a Windows 7 USB flash installation with new drives for new MB's-install.jpg


    To work on boot.wim and Install.wim we are going to use C:\Windows\SysWOW64\dism
    If your computer is 32 bits, replace C:\Windows\SysWOW64\dism with C:\Windows\System32\dism

    Make this cmd files (make new text files, copy the text commands and rename as *.cmd)

    - Clean.cmd:
    C:\Windows\SysWOW64\dism /cleanup-wim
    pause

    - Mount_info.cmd:
    C:\Windows\SysWOW64\dism /get-MountedWiminfo
    pause

    - Boot_info.cmd:
    C:\Windows\SysWOW64\dism /Get-WimInfo /WimFile:boot.wim
    pause

    - Boot_1.cmd:
    C:\Windows\SysWOW64\dism /mount-wim /wimfile:boot.wim /index:1 /mountdir:mount
    pause
    C:\Windows\SysWOW64\dism /image:mount /add-driver:"usb3" /recurse
    pause
    C:\Windows\SysWOW64\dism /image:mount /add-driver:"sata" /recurse
    pause
    Rem C:\Windows\SysWOW64\dism /image:mount /add-driver:"other" /recurse
    pause
    C:\Windows\SysWOW64\dism /unmount-wim /mountdir:mount /commit
    pause

    - Boot_2.cmd:
    C:\Windows\SysWOW64\dism /mount-wim /wimfile:boot.wim /index:2 /mountdir:mount
    pause
    C:\Windows\SysWOW64\dism /image:mount /add-driver:"usb3" /recurse
    pause
    C:\Windows\SysWOW64\dism /image:mount /add-driver:"sata" /recurse
    pause
    Rem C:\Windows\SysWOW64\dism /image:mount /add-driver:"other" /recurse
    pause
    C:\Windows\SysWOW64\dism /unmount-wim /mountdir:mount /commit
    pause

    Remark: If you do have other drivers, remove the Rem from Boot_1.cmd and Boot_2.cmd.

    - install_info.cmd:
    C:\Windows\SysWOW64\dism /Get-WimInfo /WimFile:install.wim
    pause

    - Install_2.cmd: (Rem.: replace index number with the one related to your Windows (Basic=1, Homepremium=2, Professional=3 and Ultimate=4). If you want, you can create multi Install_X.cmd’s, one for each index and run one by one (see below how).

    C:\Windows\SysWOW64\dism /mount-wim /wimfile:install.wim /index:2 /mountdir:mount
    pause
    C:\Windows\SysWOW64\dism /image:mount /add-driver:"usb3" /recurse
    pause
    C:\Windows\SysWOW64\dism /image:mount /add-driver:"sata" /recurse
    pause
    Rem C:\Windows\SysWOW64\dism /image:mount /add-driver:"other" /recurse
    pause
    C:\Windows\SysWOW64\dism /unmount-wim /mountdir:mount /commit
    pause


    Remark: If you want to make a Windows 7 installation disk for more than just one brand, for instance, Homepremium and Professional, create a Install_2.cmd and a Install_3.cmd as described above.
    Remark: If you do have other drivers, remove the Rem from Install_X.cmd and Install_Y.cmd.

    From \sources of your Windows 7 installation disk or iso file, copy Boot.wim to Drives7\Boot and Install.wim to Drives7\Install.

    Place *.cmd as below:

    Drives7\Boot:

    Create a Windows 7 USB flash installation with new drives for new MB's-boot1.jpg


    Drives7\Install


    Create a Windows 7 USB flash installation with new drives for new MB's-install1.jpg


    Everything is now ready to work on boot.wim and install.wim.
    If all the below steps are successful, run Clean.cmd and then Mount_Info.cmd. If Mount_Info still say you have a mounted images but there is nothing on the mount folder, simply shift+delete the mount folder and create a new one.

    If any of the below steps gives an error, you will have to take a close look at your drivers and find a solution by your own. Anyway, run Clean.cmd and then Mount_Info.cmd. If Mount_Info still say you have a mounted images but there is nothing on the mount folder, simply shift+delete the mount folder and create a new one. You will have to start all over with a new copy of boot.wim and / or install.wim.

    Go to Drives7\Boot.
    Run Boot_info.cmd. You’ll see the two indexes.
    Run Boot_1.cmd as administrator (right click).
    Every step finishes with a pause so you can check if successful.
    When all successful and done, run the Clean.cmd and then Mount_Info.cmd. Mount_Info should give you a No mounted images found. Congratulations: first step done
    If all successful but still say you have a mounted images but there is nothing on the mount folder, simply shift+delete the mount folder and create a new one.

    Run Boot_2.cmd as administrator (right click).
    Every step finishes with a pause so you can check if successful.
    When all successful and done, run the Clean.cmd and then Mount_Info.cmd. Mount_Info should give you a No mounted images found. Congratulations: second step done
    If all successful but still say you have a mounted images but there is nothing on the mount folder, simply shift+delete the mount folder and create a new one.

    If Run Boot_1.cmd and Run Boot_2.cmd were successful, congratulations, Boot.wim is ready.

    Go to Drives7\Install.
    Run Install_info.cmd. You’ll see the four indexes.
    Run Install_X.cmd as administrator (right click).
    Every step finishes with a pause so you can check if successful.
    When all successful and done, run the Clean.cmd and then Mount_Info.cmd. Mount_Info should give you a No mounted images found. Congratulations: first step done
    If all successful but still say you have a mounted images but there is nothing on the mount folder, simply shift+delete the mount folder and create a new one.

    Remark: If you created another Run Install_Y.cmd, Run Install_Y.cmd as administrator (right click).
    Every step finishes with a pause so you can check if successful.
    When all successful and done, run the Clean.cmd and then Mount_Info.cmd. Mount_Info should give you a No mounted images found. Congratulations: second step done
    If all successful but still say you have a mounted images but there is nothing on the mount folder, simply shift+delete the mount folder and create a new one.

    If Run Install_X.cmd and Run Install_Y.cmd were successful, congratulations, Install.wim is ready.

    Make a USB drive (4G minimum) bootable using Windows7-USB-DVD- Installer or Rufus with the Windows 7 installation disk or iso file.
    When done, replace \sources\boot.wim and \sources\ Install.wim on the USB drive with the ones you created above.

    If you want to have the same Windows 7 installation disk for multiple windows 7 brands, rename \sources\ei.cfg to \sources\ei.cfg.orig. When installing windows, it will ask witch brand you want to install. Of course, the related key must be used.

    If everything successful, you are ready to install Windows 7 on your new MB.

    The PDF of this tutorial
    Windows 7 install.pdf

    The Drives7 folder
    Drives7.zip

    Megahertz07
    Last edited by Megahertz07; 25 Aug 2017 at 10:06. Reason: better title
      My Computers


  2. Posts : 131
    Windows 7 Ultimate 64 Bit SP1
       #2

    Megahertz07 said:

    After downloading a Windows 7 SP1 installation disk from MS, it did install the USB 3 driver but did NOT my SATA (AHCI and / or RAID) drivers to the install wizard.



    Megahertz07
    Hi sorry i did not read the full content if your post but you have wrong info.

    The USB patcher has nothing to do with Sata it will only fix the usb so you can use usb port to install the OS. And Sata fully works without the USB patcher.
      My Computer


  3. Posts : 7,351
    Windows 7 HP 64
    Thread Starter
       #3

    Yes, USB patcher only loads the mouse drivers to installation (Windows Setup (index 2)) that allows to use the mouse for installation, and you will need to load the SATA drives. It doesn't install USB or SATA drives to Windows PE (index 1), used for maintenance, neither to the installed Windows, so after installation, you will have no USB support. The method showed at the post, loads, not only the USB drivers, but also SATA and any other needed, to all situations.
      My Computers


  4. Posts : 16,160
    7 X64
       #4

    I have made a dismGui, probably easier: Dism7x3x86.zip
    Last edited by SIW2; 06 Oct 2016 at 19:49.
      My Computers


  5. Posts : 7,351
    Windows 7 HP 64
    Thread Starter
       #5

    Great contribution SIW. As your program has so many fields, do you have a instruction guide on how to use it?
      My Computers


  6. Posts : 20,583
    Win-7-Pro64bit 7-H-Prem-64bit
       #6
      My Computer


  7. Posts : 7,351
    Windows 7 HP 64
    Thread Starter
       #7

    ThrashZone
    All USB patches only loads the USB 3.0 drivers to installation (Windows Setup (index 2)) that allows to use the mouse for installation, and you will need to load the SATA drives.
    Asus, Gigabyte and many MB manufactures has one. Even Intel has released its own. Download Windows 7* USB 3.0 Creator Utility

    It doesn't install USB or SATA drives to Windows PE (index 1), used for maintenance, neither to the installed Windows, so after installation, you will have no USB support. The method showed at the post, loads, not only the USB drivers, but also SATA and any other needed, to all situations.
    Last edited by Megahertz07; 08 Oct 2016 at 11:23.
      My Computers


  8. Posts : 2
    Windows 7 64 bit
       #8

    I keep getting the error that says -
    "Error: 2"
    "The system cannot find the file specified"
    "The DISM log file can be found at C:\windows\logs\DISM\dism.log"

    What should I do?
      My Computer


  9. Posts : 7,351
    Windows 7 HP 64
    Thread Starter
       #9

    There are many commands on my tutorial. Under witch one you've got the error?
    What does the dism.log say about the error?
    Please read ALL the tutorial once again and make sure you understand each step.

    Did you use the commands that are on the Drives7.zip (attached)?
      My Computers


  10. Posts : 2
    Windows 7 64 bit
       #10

    It happened for all of them except clean.

    Yea im using the attached commands. I have edited the number for install_2 to install_4 since im using ultimate. I have to drives7 in my C:\ but it is still saying no file found.
    Last edited by anuj99; 15 Oct 2016 at 16:04. Reason: respond
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:49.
Find Us