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