คำสั่งสำหรับติดตั้ง DirectX End-User Runtime Installer โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id Microsoft.DirectX -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DirectX -e --silentwinget uninstall --id Microsoft.DirectX -e --silentแยกตามตัวติดตั้ง
64 บิต · EXE
ติดตั้งแบบเงียบ
dxwebsetup.exe /Q64 บิต · MSIX
ติดตั้งแบบเงียบ
Add-AppxPackage -Path UAPSignedBinary_Microsoft.DirectX.x64.appxถอนการติดตั้ง
Get-AppxPackage -Name Microsoft.DirectXRuntime | Remove-AppxPackage32 บิต · MSIX
ติดตั้งแบบเงียบ
Add-AppxPackage -Path UAPSignedBinary_Microsoft.DirectX.x86.appxถอนการติดตั้ง
Get-AppxPackage -Name Microsoft.DirectXRuntime | Remove-AppxPackage32 บิต · EXE
ติดตั้งแบบเงียบ
dxwebsetup.exe /Qทุกซีพียู · EXE
ติดตั้งแบบเงียบ
dxwebsetup.exe /QPowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-directx-end-user-runtime-installer.ps1
$url = 'https://download.microsoft.com/download/1/7/1/1718ccc4-6315-4d8e-9543-8e28a4e18c4c/dxwebsetup.exe'
$sha256 = '2CF71D098C608C56E07F4655855A886C3102553F648DF88458DF616B26FD612F'
$file = Join-Path $env:TEMP 'dxwebsetup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/Q' -Wait install-directx-end-user-runtime-installer.ps1
$url = 'https://download.microsoft.com/download/c/c/2/cc291a37-2ebd-4ac2-ba5f-4c9124733bf1/UAPSignedBinary_Microsoft.DirectX.x64.appx'
$sha256 = 'A042086B3EB11F354B28D7047CE6B249BC828C0F299A7B5E54A7E0ADB112332B'
$file = Join-Path $env:TEMP 'UAPSignedBinary_Microsoft.DirectX.x64.appx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-directx-end-user-runtime-installer.ps1
$url = 'https://download.microsoft.com/download/c/c/2/cc291a37-2ebd-4ac2-ba5f-4c9124733bf1/UAPSignedBinary_Microsoft.DirectX.x86.appx'
$sha256 = 'B4DB87C59A79E9109C2C8EC5C05855582671DC17D717C897619F786959ECDB5A'
$file = Join-Path $env:TEMP 'UAPSignedBinary_Microsoft.DirectX.x86.appx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-directx-end-user-runtime-installer.ps1
$url = 'https://download.microsoft.com/download/1/7/1/1718ccc4-6315-4d8e-9543-8e28a4e18c4c/dxwebsetup.exe'
$sha256 = '2CF71D098C608C56E07F4655855A886C3102553F648DF88458DF616B26FD612F'
$file = Join-Path $env:TEMP 'dxwebsetup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/Q' -Wait install-directx-end-user-runtime-installer.ps1
$url = 'https://download.microsoft.com/download/1/7/1/1718ccc4-6315-4d8e-9543-8e28a4e18c4c/dxwebsetup.exe'
$sha256 = '2CF71D098C608C56E07F4655855A886C3102553F648DF88458DF616B26FD612F'
$file = Join-Path $env:TEMP 'dxwebsetup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/Q' -Wait