DevToysを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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