Kotobee Readerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Vijua.KotobeeReader -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Vijua.KotobeeReader -e --silentwinget uninstall --id Vijua.KotobeeReader -e --silentインストーラー別
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
kotobeereader-1.9.9-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
kotobeereader-1.9.9-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\kotobee-reader"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{11FC9C17-17FF-4F2B-9D5A-4DE097629F00}}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-kotobee-reader.ps1
$url = 'https://files.kotobee.com/reader/releases/kotobeereader-1.9.9-win.exe'
$sha256 = '63E0869163C94F76062AFECE92E61315671201DDE0CB5BFA8A5C251BEE43053C'
$file = Join-Path $env:TEMP 'kotobeereader-1.9.9-win.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait