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