如何使用 Windows ADK 将 Microsoft Visual C++ Redistributables 和 DirectX 集成到 Windows 映像中?

如何使用 Windows ADK 将 Microsoft Visual C++ Redistributables 和 DirectX 集成到 Windows 映像中?

我即将创建自己的Windows 10图像。到目前为止我已完成:

我使用以下目录:

  • D:\Windows\drivers包含适用于我的系统的驱动程序的文件夹
  • D:\Windows\extracted包含提取的源图像的文件夹
  • D:\Windows\mount创建图像的文件夹
  • D:\Windows\wimWindows 10文件夹install.wim

工作流程:

  1. 复制install.wimD:\Windows\extracted\sourcesD:\Windows\wim

  2. 下载最新版本(适合你的系统)Windows ADK并至少安装以下内容成分

     Deployment Tools
     Imaging And Configuration Designer (ICD)
     User State Migration Tool (USMT)
    
  3. 开始cmd(按Windows+X开始Windows PowerShell (Administrator)并输入cmd

  4. 禁用所有可以禁用的程序/自定义服务

  5. 现在以下所有命令均用于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
    

现在我想加入一些Microsoft Visual C++ 可再发行组件. 我需要(因为一些老游戏):

是否可以使用 将上述库集成到 Windows 映像中DISM? 如果可以,该怎么做?

相关内容