OrangePlayerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id kerinlin.OrangePlayer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id kerinlin.OrangePlayer -e --silentwinget uninstall --id kerinlin.OrangePlayer -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
OrangePlayer-Setup-0.2.7.exe /Sインストール先を指定
OrangePlayer-Setup-0.2.7.exe /S /D=C:\Apps\orangeplayer64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
OrangePlayer-Setup-0.2.7.exe /Sインストール先を指定
OrangePlayer-Setup-0.2.7.exe /S /D=C:\Apps\orangeplayerPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-orangeplayer.ps1
$url = 'https://github.com/Kerinlin/localMusicPlayer/releases/download/v0.2.7/OrangePlayer-Setup-0.2.7.exe'
$sha256 = '08062737068CD71A561CFAB6308E0981693446335B14828830E0A42ADFE433BE'
$file = Join-Path $env:TEMP 'OrangePlayer-Setup-0.2.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 install-orangeplayer.ps1
$url = 'https://github.com/Kerinlin/localMusicPlayer/releases/download/v0.2.7/OrangePlayer-Setup-0.2.7.exe'
$sha256 = '08062737068CD71A561CFAB6308E0981693446335B14828830E0A42ADFE433BE'
$file = Join-Path $env:TEMP 'OrangePlayer-Setup-0.2.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