Shutter Encoderを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id PaulPacifico.ShutterEncoder -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PaulPacifico.ShutterEncoder -e --silentwinget uninstall --id PaulPacifico.ShutterEncoder -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
"Shutter Encoder 20.4 Windows 64bits.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
"Shutter Encoder 20.4 Windows 64bits.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\shutter-encoder"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC8B2037-70E7-46C7-92B9-DC797E4F4674}_is1
- インストール先フォルダー
- %ProgramFiles%\Shutter Encoder
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-shutter-encoder.ps1
$url = 'https://www.shutterencoder.com/Shutter%20Encoder%2020.4%20Windows%2064bits.exe'
$sha256 = '05829EB5AD2F2AD608822693FD727CD4EEBAB77341F95EFE40C3938AE1D620E6'
$file = Join-Path $env:TEMP 'Shutter Encoder 20.4 Windows 64bits.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