Keyguardを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ArtemChepurnyi.Keyguard -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArtemChepurnyi.Keyguard -e --silentwinget uninstall --id ArtemChepurnyi.Keyguard -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i Keyguard-3.8.2.msi /qn /norestartログを出力
msiexec /i Keyguard-3.8.2.msi /qn /norestart /l*v "%TEMP%\keyguard-install.log"アンインストール
msiexec /x {2577AAAE-FA1B-33BA-81E4-3707C18556DD} /qn /norestart- MSIプロダクトコード
- {2577AAAE-FA1B-33BA-81E4-3707C18556DD}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2577AAAE-FA1B-33BA-81E4-3707C18556DD}
- UpgradeCode
- {846C6281-F349-4833-9E0E-AAE1C06006A0}
ARM64 · MSI · すべてのユーザー
サイレントインストール
msiexec /i Keyguard-3.8.2-aarch64.msi /qn /norestartログを出力
msiexec /i Keyguard-3.8.2-aarch64.msi /qn /norestart /l*v "%TEMP%\keyguard-install.log"アンインストール
msiexec /x {C12EC5A0-3620-4BF6-9CC7-AC59DCC24815} /qn /norestart- MSIプロダクトコード
- {C12EC5A0-3620-4BF6-9CC7-AC59DCC24815}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C12EC5A0-3620-4BF6-9CC7-AC59DCC24815}
- UpgradeCode
- {846C6281-F349-4833-9E0E-AAE1C06006A0}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-keyguard.ps1
$url = 'https://github.com/AChep/keyguard-app/releases/download/r20261116/Keyguard-3.8.2.msi'
$sha256 = '3B32F929E623539911553F9ECF1EC2A0106633CB11F2784B1C48AC2382A38437'
$file = Join-Path $env:TEMP 'Keyguard-3.8.2.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 install-keyguard.ps1
$url = 'https://github.com/AChep/keyguard-app/releases/download/r20261116/Keyguard-3.8.2-aarch64.msi'
$sha256 = 'AD665CC0DB5D6A93978A0F2CB22364B7E7D9758F1348875B505045DA55EEAB1E'
$file = Join-Path $env:TEMP 'Keyguard-3.8.2-aarch64.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