IconViewerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BotProductions.IconViewer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BotProductions.IconViewer -e --silentwinget uninstall --id BotProductions.IconViewer -e --silentインストーラー別
64ビット · EXE · すべてのユーザー
サイレントインストール
IconViewer3.02-Setup-x64.exe /quiet32ビット · EXE · すべてのユーザー
サイレントインストール
IconViewer3.02-Setup-x86.exe /quietPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-iconviewer.ps1
$url = 'https://www.botproductions.com/iconview/download/IconViewer3.02-Setup-x64.exe'
$sha256 = '3BE3664CFAC0B9270DA161C2C4C323499B4FE40A8E68A2D34CD4425B12EF223F'
$file = Join-Path $env:TEMP 'IconViewer3.02-Setup-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 '/quiet' -Wait install-iconviewer.ps1
$url = 'https://www.botproductions.com/iconview/download/IconViewer3.02-Setup-x86.exe'
$sha256 = '2EB365EA3E2F20848206B0B1835C58CC71E2ACA1323A19319896B3C8E3BF3956'
$file = Join-Path $env:TEMP 'IconViewer3.02-Setup-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 '/quiet' -Wait