免互動安裝DevToys、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id DevToys-app.DevToys -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DevToys-app.DevToys -e --silentwinget uninstall --id DevToys-app.DevToys -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
devtoys_win_x64.exe /VERYSILENT自訂安裝資料夾
devtoys_win_x64.exe /VERYSILENT /DIR="C:\Apps\devtoys"ARM64 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
devtoys_win_arm64.exe /VERYSILENT自訂安裝資料夾
devtoys_win_arm64.exe /VERYSILENT /DIR="C:\Apps\devtoys"32位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
devtoys_win_x86.exe /VERYSILENT自訂安裝資料夾
devtoys_win_x86.exe /VERYSILENT /DIR="C:\Apps\devtoys"PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-devtoys.ps1
$url = 'https://github.com/DevToys-app/DevToys/releases/download/v2.0.9.0/devtoys_win_x64.exe'
$sha256 = 'E099D9FC6771110C3371BB8ADC778312D34EC0963A2F86DEE4F7C1661B7E7C0F'
$file = Join-Path $env:TEMP 'devtoys_win_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 '/VERYSILENT' -Wait install-devtoys.ps1
$url = 'https://github.com/DevToys-app/DevToys/releases/download/v2.0.9.0/devtoys_win_arm64.exe'
$sha256 = '4D0426D0C26C0CE743A7C27DAE920164FA1C11E46D221EBBA17DC6A718B316F7'
$file = Join-Path $env:TEMP 'devtoys_win_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 '/VERYSILENT' -Wait install-devtoys.ps1
$url = 'https://github.com/DevToys-app/DevToys/releases/download/v2.0.9.0/devtoys_win_x86.exe'
$sha256 = 'FBED7DD16FB18A8BEDB0F8B84C61029A8C386CD895CED5EB4A250E6E35651893'
$file = Join-Path $env:TEMP 'devtoys_win_x86.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' -Wait