Commands for installing git-cola without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id git-cola.git-cola -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id git-cola.git-cola -e --silentwinget uninstall --id git-cola.git-cola -e --silentBy installer
64-bit · ZIP · All users · en-US
Silent install
git-cola-4.19.0.windows.zip /S- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\git-cola
- Install folder
- %ProgramFiles%\git-cola
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-git-cola.ps1
$url = 'https://github.com/git-cola/git-cola/releases/download/v4.19.0/git-cola-4.19.0.windows.zip'
$sha256 = 'B7F1E91ED246A4E00959A4146FDA8822EE467A35E89E6447C81B1AFFA45D7D95'
$file = Join-Path $env:TEMP 'git-cola-4.19.0.windows.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 '/S' -Wait