Invoncifyを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id AndresMorelos.Invoncify -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AndresMorelos.Invoncify -e --silentwinget uninstall --id AndresMorelos.Invoncify -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Invoncify-Setup-1.30.4.exe /Sインストール先を指定
Invoncify-Setup-1.30.4.exe /S /D=C:\Apps\invoncifyPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-invoncify.ps1
$url = 'https://github.com/AndresMorelos/Invoncify/releases/download/v1.30.4/Invoncify-Setup-1.30.4.exe'
$sha256 = '158B4896DD0BC94BB67A266A25312436023182A67A1FDD87102B233EE2B9D42A'
$file = Join-Path $env:TEMP 'Invoncify-Setup-1.30.4.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