KillerScanを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SteveTheKiller.KillerScan -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SteveTheKiller.KillerScan -e --silentwinget uninstall --id SteveTheKiller.KillerScan -e --silentインストーラー別
64ビット · EXE · すべてのユーザー
サイレントインストール
KillerScan.exe /silent- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KillerScan
- DisplayVersion
- 1.9.2
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-killerscan.ps1
$url = 'https://github.com/SteveTheKiller/KillerScan/releases/download/v1.9.2/KillerScan.exe'
$sha256 = '58C34C89A2BCE46B6D58FB7B7FB86D4673217F806D6ABA0A0F90ABADBFB1B395'
$file = Join-Path $env:TEMP 'KillerScan.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 '/silent' -Wait