免互動安裝Plotly Studio、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或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