Kommandoer til at installere Agent Git uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
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 --silentPr. installationsfil
64-bit · EXE (Inno Setup) · Alle brugere · en-US
Lydløs installation
agit64-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
agit64-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\agent-git"32-bit · EXE (Inno Setup) · Alle brugere · en-US
Lydløs installation
agit32-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
agit32-v188.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\agent-git"PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
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