Azure Data Studioを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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