Igittを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Nstr.Igitt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Nstr.Igitt -e --silentwinget uninstall --id Nstr.Igitt -e --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
igitt-setup-windows-amd64-v0.1.13.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
igitt-setup-windows-amd64-v0.1.13.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\igitt"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-igitt.ps1
$url = 'https://github.com/nstr-dev/igitt/releases/download/v0.1.13/igitt-setup-windows-amd64-v0.1.13.exe'
$sha256 = '68573BD7F2F67D988225B311C8793CCA7616D02C95DC03BC91005572AAD613AE'
$file = Join-Path $env:TEMP 'igitt-setup-windows-amd64-v0.1.13.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