免互動安裝Azure Data Studio、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Microsoft.Azure.DataStudio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Azure.DataStudio -e --silentwinget uninstall --id Microsoft.Azure.DataStudio -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
azuredatastudio-windows-user-setup-1.52.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
azuredatastudio-windows-user-setup-1.52.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\azure-data-studio"64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
azuredatastudio-windows-setup-1.52.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
azuredatastudio-windows-setup-1.52.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\azure-data-studio"ARM64 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
azuredatastudio-windows-arm64-user-setup-1.52.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
azuredatastudio-windows-arm64-user-setup-1.52.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\azure-data-studio"ARM64 · EXE(Inno Setup) · 所有使用者
靜默安裝
azuredatastudio-windows-arm64-setup-1.52.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
azuredatastudio-windows-arm64-setup-1.52.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\azure-data-studio"PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-azure-data-studio.ps1
$url = 'https://download.microsoft.com/download/6b2bfeac-9c1b-4182-9a2f-ce86ff8cc371/azuredatastudio-windows-user-setup-1.52.0.exe'
$sha256 = 'A02BF0950D03DB1F11C3A46189302C79046F850F51D859239D63F82170D25D2D'
$file = Join-Path $env:TEMP 'azuredatastudio-windows-user-setup-1.52.0.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 install-azure-data-studio.ps1
$url = 'https://download.microsoft.com/download/6b2bfeac-9c1b-4182-9a2f-ce86ff8cc371/azuredatastudio-windows-setup-1.52.0.exe'
$sha256 = '47FE18009866CDFF62DB64A4A3E2F8F072826A45B23E24006CEB6BDE7EEC907E'
$file = Join-Path $env:TEMP 'azuredatastudio-windows-setup-1.52.0.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 install-azure-data-studio.ps1
$url = 'https://download.microsoft.com/download/6b2bfeac-9c1b-4182-9a2f-ce86ff8cc371/azuredatastudio-windows-arm64-user-setup-1.52.0.exe'
$sha256 = '992CBE95A8E20F8AF94D8354ECBF18BFAB4EBDA4C5F7192E9B3D1C14350A0057'
$file = Join-Path $env:TEMP 'azuredatastudio-windows-arm64-user-setup-1.52.0.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 install-azure-data-studio.ps1
$url = 'https://download.microsoft.com/download/6b2bfeac-9c1b-4182-9a2f-ce86ff8cc371/azuredatastudio-windows-arm64-setup-1.52.0.exe'
$sha256 = 'CACBF945F043A0706FEFEB0361AF7EE9EACB08B56B2FFDE114EAD59C6481FB3B'
$file = Join-Path $env:TEMP 'azuredatastudio-windows-arm64-setup-1.52.0.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