SmartGitを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Syntevo.SmartGit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Syntevo.SmartGit -e --silentwinget uninstall --id Syntevo.SmartGit -e --silentインストーラー別
32ビット · ZIP · すべてのユーザー · en-US
サイレントインストール
smartgit-26_1_057-win-installer.zip /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-- インストール先フォルダー
- %ProgramFiles%\SmartGit
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-smartgit.ps1
$url = 'https://download.smartgit.dev/smartgit/smartgit-26_1_057-win-installer.zip'
$sha256 = '1980EA2627CA314EEAD64FD768603C682C593CB3F03AB4905621D6D6EECBB0A0'
$file = Join-Path $env:TEMP 'smartgit-26_1_057-win-installer.zip'
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