SchemaCrawlerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id schemacrawler.schemacrawler -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id schemacrawler.schemacrawler -e --silentwinget uninstall --id schemacrawler.schemacrawler -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i SchemaCrawler-18.0.1.msi /qn /norestartログを出力
msiexec /i SchemaCrawler-18.0.1.msi /qn /norestart /l*v "%TEMP%\schemacrawler-install.log"アンインストール
msiexec /x {554D8DDC-86C2-33B3-8DEA-D8FE9E19F619} /qn /norestart- MSIプロダクトコード
- {554D8DDC-86C2-33B3-8DEA-D8FE9E19F619}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{554D8DDC-86C2-33B3-8DEA-D8FE9E19F619}
- UpgradeCode
- {20062F6A-6343-3EB4-953F-6C5D08EF2AB2}
- インストール先フォルダー
- %ProgramFiles%/SchemaCrawler
- DisplayVersion
- 18.0.1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-schemacrawler.ps1
$url = 'https://github.com/schemacrawler/SchemaCrawler-Installers/releases/download/v18.0.1/SchemaCrawler-18.0.1.msi'
$sha256 = '702C5ECF96657ADAF2368ED7B1583C4583E0AEAF48D22F4C0DB89EEBDA028C64'
$file = Join-Path $env:TEMP 'SchemaCrawler-18.0.1.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