iSpotifyを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ISpotify.ISpotify -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ISpotify.ISpotify -e --silentwinget uninstall --id ISpotify.ISpotify -e --silentインストーラー別
64ビット · EXE(Inno Setup) · 現在のユーザー
サイレントインストール
ISpotify-Setup-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
ISpotify-Setup-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ispotify"- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5C75B2C8-5E96-49A1-BD27-554098E48075}_is1
- DisplayVersion
- 18.0.0
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-ispotify.ps1
$url = 'https://github.com/itzlalpekhlua/ISpotify-Releases/releases/download/v18.0.0/ISpotify-Setup-x86_64.exe'
$sha256 = '3459CFF109C9556E152BFA81E86F8E32C39C83ECF45CEEDF7927CADD22E7E1E2'
$file = Join-Path $env:TEMP 'ISpotify-Setup-x86_64.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