killbotsを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id KDE.Killbots -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.Killbots -e --silentwinget uninstall --id KDE.Killbots -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
killbots-master-1009-windows-cl-msvc2022-x86_64.exe /Sインストール先を指定
killbots-master-1009-windows-cl-msvc2022-x86_64.exe /S /D=C:\Apps\killbots- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\killbots
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
killbots-master-1009-windows-cl-msvc2022-x86_64.exe /Sインストール先を指定
killbots-master-1009-windows-cl-msvc2022-x86_64.exe /S /D=C:\Apps\killbots- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\killbots
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-killbots.ps1
$url = 'https://cdn.kde.org/ci-builds/games/killbots/master/windows/killbots-master-1009-windows-cl-msvc2022-x86_64.exe'
$sha256 = '5B3672DDFFEC06E977511736EB49E57B87CBCD41E9F5864A0BFD0558D963F209'
$file = Join-Path $env:TEMP 'killbots-master-1009-windows-cl-msvc2022-x86_64.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-killbots.ps1
$url = 'https://cdn.kde.org/ci-builds/games/killbots/master/windows/killbots-master-1009-windows-cl-msvc2022-x86_64.exe'
$sha256 = '5B3672DDFFEC06E977511736EB49E57B87CBCD41E9F5864A0BFD0558D963F209'
$file = Join-Path $env:TEMP 'killbots-master-1009-windows-cl-msvc2022-x86_64.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