RML Utilities for SQL Serverを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.SQLServer.RMLUtilities -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.SQLServer.RMLUtilities -e --silentwinget uninstall --id Microsoft.SQLServer.RMLUtilities -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i RMLSetup.msi /qn /norestartログを出力
msiexec /i RMLSetup.msi /qn /norestart /l*v "%TEMP%\rml-utilities-for-sql-server-install.log"アンインストール
msiexec /x {9285BC89-EB6B-4926-81EF-2BEF96160B16} /qn /norestart- MSIプロダクトコード
- {9285BC89-EB6B-4926-81EF-2BEF96160B16}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9285BC89-EB6B-4926-81EF-2BEF96160B16}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-rml-utilities-for-sql-server.ps1
$url = 'https://download.microsoft.com/download/6/5/8/65855c73-97a1-438c-b95e-d610a9bb05b0/RMLSetup.msi'
$sha256 = '8EC022C1AB547C0C59F1644A67F680E51F8AC1128C8C42E30828B7361289839D'
$file = Join-Path $env:TEMP 'RMLSetup.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