Příkazy pro instalaci programu Agent Git bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id Xidicone.AgentGit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Xidicone.AgentGit -e --silentwinget uninstall --id Xidicone.AgentGit -e --silentPodle instalátoru
64bit · EXE (Inno Setup) · Všichni uživatelé · en-US
Tichá instalace
agit64-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
agit64-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\agent-git"32bit · EXE (Inno Setup) · Všichni uživatelé · en-US
Tichá instalace
agit32-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
agit32-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\agent-git"PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-agent-git.ps1
$url = 'https://www.zeusedit.com/winget/agit64-v188.exe'
$sha256 = '3EFDC36BA233E009F2C44EBA7A063B03F83E9548C5A8AA45925B8E0A9A12BC9A'
$file = Join-Path $env:TEMP 'agit64-v188.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 install-agent-git.ps1
$url = 'https://www.zeusedit.com/winget/agit32-v188.exe'
$sha256 = 'BE246E7786AB0D17B83177878C6F4CB07164FE885D4D59877B58BC0D77DA0F2C'
$file = Join-Path $env:TEMP 'agit32-v188.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