KCPPOS plusを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id NHNKCP.KCPPOSplus -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NHNKCP.KCPPOSplus -e --silentwinget uninstall --id NHNKCP.KCPPOSplus -e --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
KCPPosplusSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
KCPPosplusSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\kcppos-plus"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KCPPOS plus_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-kcppos-plus.ps1
$url = 'https://rl5gkllrg.toastcdn.net/cherryforce/static/setup/KCPPosplusSetup.exe'
$sha256 = '8504305F44E0182D9D466BD560CE7C8EF6F3F4A8BB4FF4DB85E8C66E2F79F853'
$file = Join-Path $env:TEMP 'KCPPosplusSetup.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