Kommandon för att installera Agent Git utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
agit64-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
agit64-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\agent-git"32-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
agit32-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
agit32-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\agent-git"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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