匿名Player++を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id arrow2nd.tokumei-player-pp -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id arrow2nd.tokumei-player-pp -e --silentwinget uninstall --id arrow2nd.tokumei-player-pp -e --silentインストーラー別
64ビット · EXE(NSIS)
サイレントインストール
tokumei-player-pp-1.8.7.exe /Sインストール先を指定
tokumei-player-pp-1.8.7.exe /S /D=C:\Apps\player-plus-plus- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\85072e27-fc6d-5005-a3df-f49787accbcb
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-player-plus-plus.ps1
$url = 'https://github.com/arrow2nd/tokumei-player-pp/releases/download/v1.8.7/tokumei-player-pp-1.8.7.exe'
$sha256 = '98BA5F9F24A62189ED086A54E0E88C6DB9A725D4C68A8F4F7A03807D04942CF5'
$file = Join-Path $env:TEMP 'tokumei-player-pp-1.8.7.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