免互動安裝TaskSlinger、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id TaskSlinger.TaskSlinger -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TaskSlinger.TaskSlinger -e --silentwinget uninstall --id TaskSlinger.TaskSlinger -e --silent依安裝檔
64位元 · EXE · 僅目前使用者
靜默安裝
x64.exe --internal-install 3 --install-source winget- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TaskSlinger
- 安裝資料夾
- %LocalAppData%\Programs\TaskSlinger
- DisplayVersion
- v0.9.5
ARM64 · EXE · 僅目前使用者
靜默安裝
arm64.exe --internal-install 3 --install-source winget- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TaskSlinger
- 安裝資料夾
- %LocalAppData%\Programs\TaskSlinger
- DisplayVersion
- v0.9.5
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-taskslinger.ps1
$url = 'https://taskslinger.net/download/v0.9.5/winget/x64.exe'
$sha256 = '6B4C656A9E4A576B061C962A7447C27E74073B7D0210839600F16043AAB35E79'
$file = Join-Path $env:TEMP '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 '--internal-install 3 --install-source winget' -Wait install-taskslinger.ps1
$url = 'https://taskslinger.net/download/v0.9.5/winget/arm64.exe'
$sha256 = 'F99F87640CDAC2E0EA5137F084CE5193273F1E04D91B9935209714FB304015DA'
$file = Join-Path $env:TEMP '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 '--internal-install 3 --install-source winget' -Wait