KeyMaster-Proを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id KeyMasterPro.KeyMasterPro -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KeyMasterPro.KeyMasterPro -e --silentwinget uninstall --id KeyMasterPro.KeyMasterPro -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー · en-US
サイレントインストール
KeyMaster-Pro_0.5.1_x64-setup.exe /Sインストール先を指定
KeyMaster-Pro_0.5.1_x64-setup.exe /S /D=C:\Apps\keymaster-pro- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KeyMaster-Pro
- インストール先フォルダー
- %ProgramFiles%\KeyMaster-Pro
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-keymaster-pro.ps1
$url = 'https://github.com/zsanya322-maker/keymaster-pro/releases/download/v0.5.1/KeyMaster-Pro_0.5.1_x64-setup.exe'
$sha256 = 'BBD9437C368087538F6D7CFE88DACC98D666822E2601B53854EFA94D4A933AD1'
$file = Join-Path $env:TEMP 'KeyMaster-Pro_0.5.1_x64-setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait