Window Inspectorを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BinaryFortress.WindowInspector -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BinaryFortress.WindowInspector -e --silentwinget uninstall --id BinaryFortress.WindowInspector -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
WindowInspectorSetup-3.9.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
WindowInspectorSetup-3.9.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\window-inspector"32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
WindowInspectorSetup-3.9.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
WindowInspectorSetup-3.9.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\window-inspector"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-window-inspector.ps1
$url = 'https://binaryfortressdownloads.com/Download/BFSFiles/126/WindowInspectorSetup-3.9.2.exe'
$sha256 = 'D6ED4A6B638A7E9255BE26CDB234971222A99322B556A4D7FF66E334B2DC37B2'
$file = Join-Path $env:TEMP 'WindowInspectorSetup-3.9.2.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 install-window-inspector.ps1
$url = 'https://binaryfortressdownloads.com/Download/BFSFiles/126/WindowInspectorSetup-3.9.2.exe'
$sha256 = 'D6ED4A6B638A7E9255BE26CDB234971222A99322B556A4D7FF66E334B2DC37B2'
$file = Join-Path $env:TEMP 'WindowInspectorSetup-3.9.2.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