Commands for installing Gridea 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 EryouHao.Gridea -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EryouHao.Gridea -e --silentwinget uninstall --id EryouHao.Gridea -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Gridea.Setup.0.9.3.exe /SCustom folder
Gridea.Setup.0.9.3.exe /S /D=C:\Apps\grideaPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-gridea.ps1
$url = 'https://github.com/getgridea/gridea/releases/download/v0.9.3/Gridea.Setup.0.9.3.exe'
$sha256 = '151B7361FCEC570C8E2C3801E83F234E252BB76A2685BDF69929A00953F86468'
$file = Join-Path $env:TEMP 'Gridea.Setup.0.9.3.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 '/S' -Wait