PL/SQL Developerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id AllroundAutomations.PLSQLDeveloper -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AllroundAutomations.PLSQLDeveloper -e --silentwinget uninstall --id AllroundAutomations.PLSQLDeveloper -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i plsqldev1703x64.msi /qn /norestartログを出力
msiexec /i plsqldev1703x64.msi /qn /norestart /l*v "%TEMP%\pl-sql-developer-install.log"アンインストール
msiexec /x {0020D068-E011-4976-856C-1DF6AFCAF7D3} /qn /norestart- MSIプロダクトコード
- {0020D068-E011-4976-856C-1DF6AFCAF7D3}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0020D068-E011-4976-856C-1DF6AFCAF7D3}
- UpgradeCode
- {32D1C907-182D-4D80-8F22-4F8D56E62078}
- インストール先フォルダー
- %ProgramFiles(x86)%\PLSQL Developer 17\.
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-pl-sql-developer.ps1
$url = 'https://www.allroundautomations.com/files/plsqldev1703x64.msi'
$sha256 = '708D9ABE3E890678898DF985743E8A406AFC7BBD4895F47598AB27A5271BB5AB'
$file = Join-Path $env:TEMP 'plsqldev1703x64.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