iTech / Windows · 2019年4月17日

Update to add native driver support in NVM Express in Windows 7 and Windows Server 2008 R2

How to insert hotfixes and drivers and then create a bootable Windows Setup DVD

Method 1
  1. Install the latest Windows ADK for Windows 8.1 update.
  2. Create local folders c:\temp\src c:\temp\mount, c:\temp\winremount, c:\temp\hotfix, and c:\temp\drivers.
  3. Copy the setup sources from the DVD or a mounted ISO to C:\temp\src.
  4. Copy the hotfix (.msu or .cab files) to C:\temp\hotfix.
  5. Copy the driver files to c:\temp\drivers.
  6. Run Command Prompt as an administrative.
  7. Insert the hotfixes and drivers to the boot.wim, then update the sources folder by running the following Deployment Image Servicing and Management (DISM) commands. For more information about DISM, see the DISM Operating System Package Servicing Command-Line Options.
    dism /Mount-Image /ImageFile:c:\temp\src\sources\boot.wim /Index:1 /MountDir:c:\temp\mount
    dism /Image:C:\temp\mount /Add-Package /PackagePath:c:\temp\hotfix
    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse
    dism /Unmount-Image /MountDir:C:\temp\mount /Commit
    dism /Mount-Image /ImageFile:c:\temp\src\sources\boot.wim /Index:2 /MountDir:c:\temp\mount
    dism /Image:C:\temp\mount /Add-Package /PackagePath:c:\temp\hotfix
    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse

    Manually sort the folder C:\temp\mount\sources by date, and then copy the updated files to c:\temp\src\sources.
    dism /Unmount-Image /MountDir:C:\temp\mount /commit
  8. Obtain the index from the Install.wim information by running the following command, and then check every index to see how many indexes have to be updated.
    dism /Get-WimInfo /WimFile:c:\temp\src\sources\install.wim
  9. Insert the hotfixes and drivers to install.wim and winre.wim by running the following commands:
    dism /Mount-Image /ImageFile:c:\temp\src\sources\install.wim /Index:1 /MountDir:c:\temp\mount
    dism /Image:C:\temp\mount /Add-Package /PackagePath:c:\temp\hotfix
    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse
    dism /Mount-Image /ImageFile:c:\temp\mount\windows\system32\recovery\winre.wim /Index:1 /MountDir:c:\temp\winremount
    dism /Image:C:\temp\mount /Add-Package /PackagePath:c:\temp\hotfix
    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse
    dism /Unmount-Wim /MountDir:C:\temp\winremount /Commit
    dism /Unmount-Wim /MountDir:C:\temp\mount /Commit
    Note If there are multiple indexes in step 8, update them one by one.
  10. Create an ISO file, and then rename the label by running the following oscdimg commands. For more information about oscdimg, see the Oscdimg Command-Line Options.

    For Legacy BIOS Boot mode:
    oscdimg -LTEST -m -u2 -bC:\temp\src\boot\ C:\temp\src C:\temp\Win7.NVME.ISOFor Legacy and UEFI BIOS multiple Boot mode:
    oscdimg -LTEST -m -u2 -bootdata:2#p0,e,bC:\temp\src\boot\,e,bC:\temp\src\efi\microsoft\boot\efisys.bin C:\temp\src C:\temp\Win7.NVME.ISO
  11. Right-click the ISO file, and then click Burn disc image to burn the DVD.


  • If you have to compress the image, run the following command:

    Dism /image:c:\temp\mount /Cleanup-Image /StartComponentCleanup /ResetBase
  • If there are hotfixes that are pending online, you have to bring them online to Audit mode to clean up, and then recapture the image.
  • If the ISO file is larger than 4.7 gigabytes (GB), use a dual layer DVD to burn the ISO file.
Method 2
  1. Restart from media, and install Windows 7 from media to a disk that attaches other storage controllers (such as SATA).
  2. Press Ctrl+Shift+F3 to enter audit mode during the Out-of-box experience (OOBE) process.
  3. Install the hotfix package, and then restart the computer.
  4. Reseal the system by using the sysprep – generalize – shutdown options.
  5. Capture and move the generalized image to the disk that attaches the NVMe controller.