Plotly Studioを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Plotly.Studio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Plotly.Studio -e --silentwinget uninstall --id Plotly.Studio -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i plotly_studio_x64_no_update_v0.0.85.msi /qn /norestartログを出力
msiexec /i plotly_studio_x64_no_update_v0.0.85.msi /qn /norestart /l*v "%TEMP%\plotly-studio-install.log"アンインストール
msiexec /x {20FB3D3C-572A-4286-B687-51C9F0D96ECD} /qn /norestart- MSIプロダクトコード
- {20FB3D3C-572A-4286-B687-51C9F0D96ECD}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{20FB3D3C-572A-4286-B687-51C9F0D96ECD}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-plotly-studio.ps1
$url = 'https://plotly-cloud-production-desktop-installer-bucket.s3.amazonaws.com/plotly_studio_x64_no_update_v0.0.85.msi'
$sha256 = '7281CF170CD2C28A94441A78F63560E61BAA41669B0C1C89720DDCE6CAB1C10D'
$file = Join-Path $env:TEMP 'plotly_studio_x64_no_update_v0.0.85.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait