免互動安裝RicochetRefresh、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id BlueprintFreespeech.RicochetRefresh -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BlueprintFreespeech.RicochetRefresh -e --silentwinget uninstall --id BlueprintFreespeech.RicochetRefresh -e --silent依安裝檔
64位元 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
ricochet-refresh-3.0.41-windows-x86_64-installer.exe /S自訂安裝資料夾
ricochet-refresh-3.0.41-windows-x86_64-installer.exe /S /D=C:\Apps\ricochetrefresh- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Ricochet Refresh
- 安裝資料夾
- %ProgramFiles(x86)%\Ricochet Refresh
64位元 · ZIP
免安裝(可攜版)
32位元 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
ricochet-refresh-3.0.41-windows-i686-installer.exe /S自訂安裝資料夾
ricochet-refresh-3.0.41-windows-i686-installer.exe /S /D=C:\Apps\ricochetrefresh- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Ricochet Refresh
- 安裝資料夾
- %ProgramFiles(x86)%\Ricochet Refresh
32位元 · ZIP
免安裝(可攜版)
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-ricochetrefresh.ps1
$url = 'https://github.com/blueprint-freespeech/ricochet-refresh/releases/download/v3.0.41-release/ricochet-refresh-3.0.41-windows-x86_64-installer.exe'
$sha256 = 'FB61F6B491BE5BB20F0A8E81E580D4971647B0026BF105E0D15F55AB41DCFBA2'
$file = Join-Path $env:TEMP 'ricochet-refresh-3.0.41-windows-x86_64-installer.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 '/S' -Wait install-ricochetrefresh.ps1
$url = 'https://github.com/blueprint-freespeech/ricochet-refresh/releases/download/v3.0.41-release/ricochet-refresh-3.0.41-windows-i686-installer.exe'
$sha256 = 'BDE7CF088BA64A69E876EC0B943D556319EF954EAD1021A0A1E653578D49FF43'
$file = Join-Path $env:TEMP 'ricochet-refresh-3.0.41-windows-i686-installer.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 '/S' -Wait