Database Pilotを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Sparxsoft.DatabasePilot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Sparxsoft.DatabasePilot -e --silentwinget uninstall --id Sparxsoft.DatabasePilot -e --silentインストーラー別
64ビット · MSIX
サイレントインストール
Add-AppxPackage -Path DatabasePilot_1.38.2.0_x64.msixアンインストール
Get-AppxPackage -Name Sparxsoft.DatabasePilot | Remove-AppxPackage- インストール先フォルダー
- %ProgramFiles%\WindowsApps\Sparxsoft.DatabasePilot_1.37.4.0_x64__tjqezjxdrgwra
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-database-pilot.ps1
$url = 'https://stdatabasepilotprod.blob.core.windows.net/public/DatabasePilot_1.38.2.0_x64.msix'
$sha256 = 'BC9A75FF7917F4D07815E94D84B447BE96C2B5AD15CB7EE8827D43DCA1238693'
$file = Join-Path $env:TEMP 'DatabasePilot_1.38.2.0_x64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file