免互動安裝Rio、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id raphamorim.rio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id raphamorim.rio -e --silentwinget uninstall --id raphamorim.rio -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i Rio-installer-x86_64.msi /qn /norestart寫入記錄檔
msiexec /i Rio-installer-x86_64.msi /qn /norestart /l*v "%TEMP%\rio-install.log"解除安裝
msiexec /x {6DCC7196-3B47-4277-80C0-D190D1FDE782} /qn /norestart- MSI產品代碼
- {6DCC7196-3B47-4277-80C0-D190D1FDE782}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6DCC7196-3B47-4277-80C0-D190D1FDE782}
- UpgradeCode
- {87C21C74-DBD5-4584-89D5-46D9CD0C40A8}
- 安裝資料夾
- %ProgramFiles%/Rio
- DisplayVersion
- 0.5.32
ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i Rio-installer-aarch64.msi /qn /norestart寫入記錄檔
msiexec /i Rio-installer-aarch64.msi /qn /norestart /l*v "%TEMP%\rio-install.log"解除安裝
msiexec /x {B6A6DB02-C70C-4952-9F80-2C65084B9695} /qn /norestart- MSI產品代碼
- {B6A6DB02-C70C-4952-9F80-2C65084B9695}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B6A6DB02-C70C-4952-9F80-2C65084B9695}
- UpgradeCode
- {87C21C74-DBD5-4584-89D5-46D9CD0C40A8}
- 安裝資料夾
- %ProgramFiles%/Rio/arm64
- DisplayVersion
- 0.5.32
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-rio.ps1
$url = 'https://github.com/raphamorim/rio/releases/download/v0.5.32/Rio-installer-x86_64.msi'
$sha256 = 'B136974CE3788578527932E2DAF6B6773BC3FB5AF2D992D8F5C2819451CEF5AD'
$file = Join-Path $env:TEMP 'Rio-installer-x86_64.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-rio.ps1
$url = 'https://github.com/raphamorim/rio/releases/download/v0.5.32/Rio-installer-aarch64.msi'
$sha256 = '581AFD533BC3FF8B75C42F443D124CE94C9F9E3366150E66C5076C9E2040E67E'
$file = Join-Path $env:TEMP 'Rio-installer-aarch64.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