LexiconErrorを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Magnexis.LexiconError -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Magnexis.LexiconError -e --silentwinget uninstall --id Magnexis.LexiconError -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i LexiconError_1.0.0_x64_en-US.msi /qn /norestartログを出力
msiexec /i LexiconError_1.0.0_x64_en-US.msi /qn /norestart /l*v "%TEMP%\lexiconerror-install.log"アンインストール
msiexec /x {B169ABC2-5282-4414-B571-8DF942235FE6} /qn /norestart- MSIプロダクトコード
- {B169ABC2-5282-4414-B571-8DF942235FE6}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B169ABC2-5282-4414-B571-8DF942235FE6}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-lexiconerror.ps1
$url = 'https://github.com/theworker02/lexicon-error/releases/download/v1.0.0/LexiconError_1.0.0_x64_en-US.msi'
$sha256 = '55DB308BFAB62DA6AC446F830D495763DCE0DB7991B7911E048739B4763C5C65'
$file = Join-Path $env:TEMP 'LexiconError_1.0.0_x64_en-US.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