Deezerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Deezer.Deezer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Deezer.Deezer -e --silentwinget uninstall --id Deezer.Deezer -e --silentインストーラー別
32ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
artifact-win32-x86-8.0.10 /Sインストール先を指定
artifact-win32-x86-8.0.10 /S /D=C:\Apps\deezer- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\67490f87-0893-5593-ae76-b1e5d0acd13f
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-deezer.ps1
$url = 'https://www.deezer.com/desktop/update/artifact-win32-x86-8.0.10'
$sha256 = '21215C49C3B7A3720FC8DAD523CB6A384F2432FA5436E4399DB8478E774DD96B'
$file = Join-Path $env:TEMP 'artifact-win32-x86-8.0.10'
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