void Image Viewerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id voidtools.voidImageViewer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id voidtools.voidImageViewer -e --silentwinget uninstall --id voidtools.voidImageViewer -e --silentインストーラー別
64ビット · EXE
サイレントインストール
voidImageViewer-1.0.0.13.x64.en-US-Setup.exe /S32ビット · EXE
サイレントインストール
voidImageViewer-1.0.0.13.x86.en-US-Setup.exe /SPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-void-image-viewer.ps1
$url = 'https://www.voidtools.com/voidImageViewer-1.0.0.13.x64.en-US-Setup.exe'
$sha256 = 'FF9D51A3FD6638C3872886324DF957DB882620C43D744EEC1F83C1F9DF679722'
$file = Join-Path $env:TEMP 'voidImageViewer-1.0.0.13.x64.en-US-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 install-void-image-viewer.ps1
$url = 'https://www.voidtools.com/voidImageViewer-1.0.0.13.x86.en-US-Setup.exe'
$sha256 = 'E06783EE2E0BB9B933D714EDA3C47C4FD0A3532737847E6217AD9E5CA7B18F14'
$file = Join-Path $env:TEMP 'voidImageViewer-1.0.0.13.x86.en-US-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