คำสั่งสำหรับติดตั้ง Windows App Runtime 2.0 โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id Microsoft.WindowsAppRuntime.2 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WindowsAppRuntime.2 -e --silentwinget uninstall --id Microsoft.WindowsAppRuntime.2 -e --silentแยกตามตัวติดตั้ง
64 บิต · EXE
ติดตั้งแบบเงียบ
windowsappruntimeinstall-x64.exe --quietARM64 · EXE
ติดตั้งแบบเงียบ
windowsappruntimeinstall-arm64.exe --quiet32 บิต · EXE
ติดตั้งแบบเงียบ
windowsappruntimeinstall-x86.exe --quietPowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-windows-app-runtime-2-0.ps1
$url = 'https://aka.ms/windowsappsdk/2.4/2.4.0/windowsappruntimeinstall-x64.exe'
$sha256 = '851C35B0B0A59CE4C55F9171F601193322FC3413143B0DC3390EA11E14CFA7FC'
$file = Join-Path $env:TEMP 'windowsappruntimeinstall-x64.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 '--quiet' -Wait install-windows-app-runtime-2-0.ps1
$url = 'https://aka.ms/windowsappsdk/2.4/2.4.0/windowsappruntimeinstall-arm64.exe'
$sha256 = '788665585DCBC2844E99483FDA27809A91C2F36235B799B104D6649B68EB61B0'
$file = Join-Path $env:TEMP 'windowsappruntimeinstall-arm64.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 '--quiet' -Wait install-windows-app-runtime-2-0.ps1
$url = 'https://aka.ms/windowsappsdk/2.4/2.4.0/windowsappruntimeinstall-x86.exe'
$sha256 = '427C490230DB95443D74C9B6E86C3272A85E8A5DC86408FB9DA4C05050196F8F'
$file = Join-Path $env:TEMP 'windowsappruntimeinstall-x86.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 '--quiet' -Wait