免互動安裝Microsoft Server Speech Platform Runtime、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Microsoft.ServerSpeechPlatformRuntime -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.ServerSpeechPlatformRuntime -e --silentwinget uninstall --id Microsoft.ServerSpeechPlatformRuntime -e --silent依安裝檔
64位元 · MSI · en-US
靜默安裝
msiexec /i SpeechPlatformRuntime.msi /qn /norestart寫入記錄檔
msiexec /i SpeechPlatformRuntime.msi /qn /norestart /l*v "%TEMP%\microsoft-server-speech-platform-runtime-install.log"解除安裝
msiexec /x {3B433087-E62E-4BF5-97F9-4AF6E1C2409C} /qn /norestart- MSI產品代碼
- {3B433087-E62E-4BF5-97F9-4AF6E1C2409C}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3B433087-E62E-4BF5-97F9-4AF6E1C2409C}
32位元 · MSI · en-US
靜默安裝
msiexec /i SpeechPlatformRuntime.msi /qn /norestart寫入記錄檔
msiexec /i SpeechPlatformRuntime.msi /qn /norestart /l*v "%TEMP%\microsoft-server-speech-platform-runtime-install.log"解除安裝
msiexec /x {3B433087-E62E-4BF5-97F9-4AF6E1C2409C} /qn /norestart- MSI產品代碼
- {3B433087-E62E-4BF5-97F9-4AF6E1C2409C}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{3B433087-E62E-4BF5-97F9-4AF6E1C2409C}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-microsoft-server-speech-platform-runtime.ps1
$url = 'https://download.microsoft.com/download/a/6/4/a64012d6-d56f-4e58-85e3-531e56abc0e6/x64_SpeechPlatformRuntime/SpeechPlatformRuntime.msi'
$sha256 = '9C0A1D096E80F2AE77D5FC00B5D1A43B665C28EC6196911DE3DCE6D74C115137'
$file = Join-Path $env:TEMP 'SpeechPlatformRuntime.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-microsoft-server-speech-platform-runtime.ps1
$url = 'https://download.microsoft.com/download/a/6/4/a64012d6-d56f-4e58-85e3-531e56abc0e6/x86_SpeechPlatformRuntime/SpeechPlatformRuntime.msi'
$sha256 = '9B42EEC0DB1DC3CB92FCDD795EA0771EDAC1CF58118D12A810810268ADB954B4'
$file = Join-Path $env:TEMP 'SpeechPlatformRuntime.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait