Image Shutterを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BenBurwood.ImageShutter -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BenBurwood.ImageShutter -e --silentwinget uninstall --id BenBurwood.ImageShutter -e --silentインストーラー別
64ビット · EXE(NSIS) · en-US
サイレントインストール
image-shutter_0.1.6_x64-setup.exe /Sインストール先を指定
image-shutter_0.1.6_x64-setup.exe /S /D=C:\Apps\image-shutterPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-image-shutter.ps1
$url = 'https://github.com/ben-burwood/window/releases/download/0.1.6/image-shutter_0.1.6_x64-setup.exe'
$sha256 = 'E7940C2BAED95243809FF94420BC340B08DAC060BCAF1FD31BA47A4CE62FBC0F'
$file = Join-Path $env:TEMP 'image-shutter_0.1.6_x64-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 '/S' -Wait