I'am about to build my own Windows 10 imgage. What I've done so far:
I use the following directories:
D:\Windows\driversfolder with drivers for my systemD:\Windows\extractedfolder with the extracted source imageD:\Windows\mountfolder for the created imageD:\Windows\wimfolder for theWindows 10fileinstall.wim.
The workflow:
Copy
install.wimfromD:\Windows\extracted\sourcestoD:\Windows\wimDownload the latest (for your system) Windows ADK and install at least the following components:
Deployment Tools Imaging And Configuration Designer (ICD) User State Migration Tool (USMT)Start
cmd(pressWindows+XstartWindows PowerShell (Administrator)and typecmd)Disable all (programs/custom services) you can
All commands following now are for the
cmd:SET DISM="C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe" %DISM% /Mount-Wim /WimFile:"D:\Windows\wim\install.wim" /index:1 /Mountdir:"D:\Windows\mount" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\bluetooth\Rtkfilter.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\HDMI Audio\AtihdWT6.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\network\rt640x64.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\touchpad\AsusTP.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\chipset\GPIO2\amdgpio2.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\chipset\I2C\amdi2c.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\chipset\PSP\amdpsp.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\chipset\SATA\amd_sata.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\chipset\SMBus\SMBUSamd.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\chipset\UART\amduart.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\video" /Recurse %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\WLAN\netrtwlane02.inf" %DISM% /Image:"D:\Windows\mount" /Add-Driver /Driver:"D:\Windows\drivers\audio" /Recurse %DISM% /Image:"D:\Windows\mount" /set-productkey:YOUR-WIN-DOWS-KEY-HERE %DISM% /Unmount-Wim /Mountdir:"D:\Windows\mount" /commit %DISM% /Cleanup-Wim
Now I wish to include some Microsoft Visual C++ Redistributables. I need (because of some old games):
- Microsoft Visual C++ 2012 x86 ,
- Microsoft Visual C++ 2013 x64 and the current
- Microsoft Visual C++ 2015, 2017, 2019, and 2022 x86 and
- Microsoft Visual C++ 2015, 2017, 2019, and 2022 x64 and the old
- DirectX 9.29.1974.1.
Is it possible to integrate the above libraries into the Windows image with DISM? If yes, how can one do this?