ADInstruments LabChart Lightningを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ADInstruments.LabChartLightning -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ADInstruments.LabChartLightning -e --silentwinget uninstall --id ADInstruments.LabChartLightning -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i "LabChart Lightning.msi" /qn /norestartログを出力
msiexec /i "LabChart Lightning.msi" /qn /norestart /l*v "%TEMP%\adinstruments-labchart-lightning-install.log"アンインストール
msiexec /x {EBFD5644-92B5-419C-95D7-5DD581CC3CDC} /qn /norestart- MSIプロダクトコード
- {EBFD5644-92B5-419C-95D7-5DD581CC3CDC}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EBFD5644-92B5-419C-95D7-5DD581CC3CDC}
- UpgradeCode
- {FA5F5148-9349-4C0D-B3C4-2E8BE31844D0}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-adinstruments-labchart-lightning.ps1
$url = 'https://cdn.adinstruments.com/Installers/win/LabChart%20Lightning.msi'
$sha256 = 'D122A0111149F9CB5F13037E6358C8CFAC7C8E96C9B288241A96882520147C2A'
$file = Join-Path $env:TEMP 'LabChart Lightning.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