免互動安裝FlClash、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id chen08209.FlClash -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id chen08209.FlClash -e --silentwinget uninstall --id chen08209.FlClash -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
FlClash-0.9.5-windows-amd64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
FlClash-0.9.5-windows-amd64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\flclash"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\728B3532-C74B-4870-9068-BE70FE12A3E6_is1
- 安裝資料夾
- %ProgramFiles%\FlClash
ARM64 · EXE(Inno Setup) · 所有使用者
靜默安裝
FlClash-0.9.5-windows-arm64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
FlClash-0.9.5-windows-arm64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\flclash"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\728B3532-C74B-4870-9068-BE70FE12A3E6_is1
- 安裝資料夾
- %ProgramFiles%\FlClash
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-flclash.ps1
$url = 'https://github.com/concord-net/FlClash/releases/download/v0.9.5/FlClash-0.9.5-windows-amd64-setup.exe'
$sha256 = 'CA4B2F19EDBA609BF961D01DB17661EAE710FF5FFEC4BEAA8DC5E685A9622A63'
$file = Join-Path $env:TEMP 'FlClash-0.9.5-windows-amd64-setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-flclash.ps1
$url = 'https://github.com/concord-net/FlClash/releases/download/v0.9.5/FlClash-0.9.5-windows-arm64-setup.exe'
$sha256 = '2C8BEA498836FAD4F5AD5472771BACAC994F8065DDC901EE716C328BAB5B6BE9'
$file = Join-Path $env:TEMP 'FlClash-0.9.5-windows-arm64-setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait