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