网易云音乐·X Studioを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id NetEase.CloudMusicXStudio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NetEase.CloudMusicXStudio -e --silentwinget uninstall --id NetEase.CloudMusicXStudio -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
XStudio_Singer_1.2.5_Windows_x86_64_production_43.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
XStudio_Singer_1.2.5_Windows_x86_64_production_43.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\x-studio"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FA81A4CF-A7C5-4537-ABB0-D5A3A77D13BE}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-x-studio.ps1
$url = 'https://d2.music.126.net/dmusic/xstudio-public/online/production/43/XStudio_Singer_1.2.5_Windows_x86_64_production_43.exe'
$sha256 = '5987146BA11A646AAA24877E611D05CA240C8033EAAA0673EEA0290808E66372'
$file = Join-Path $env:TEMP 'XStudio_Singer_1.2.5_Windows_x86_64_production_43.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