How to insert hotfixes and drivers and then create a bootable Windows Setup DVD
Method 1
- Install the latest Windows ADK for Windows 8.1 update.
- Create local folders c:\temp\src c:\temp\mount, c:\temp\winremount, c:\temp\hotfix, and c:\temp\drivers.
- Copy the setup sources from the DVD or a mounted ISO to C:\temp\src.
- Copy the hotfix (.msu or .cab files) to C:\temp\hotfix.
- Copy the driver files to c:\temp\drivers.
- Run Command Prompt as an administrative.
- 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 - 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 - 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. - 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\etfsboot.com 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\etfsboot.com#pEF,e,bC:\temp\src\efi\microsoft\boot\efisys.bin C:\temp\src C:\temp\Win7.NVME.ISO - Right-click the ISO file, and then click Burn disc image to burn the DVD.
Note
- 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
- Restart from media, and install Windows 7 from media to a disk that attaches other storage controllers (such as SATA).
- Press Ctrl+Shift+F3 to enter audit mode during the Out-of-box experience (OOBE) process.
- Install the hotfix package, and then restart the computer.
- Reseal the system by using the sysprep – generalize – shutdown options.
- Capture and move the generalized image to the disk that attaches the NVMe controller.