Commands for installing authgate-cli 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 Authgate.authgate-cli -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Authgate.authgate-cli -e --silentwinget uninstall --id Authgate.authgate-cli -e --silentBy installer
64-bit · EXE (Inno Setup)
Silent install
AuthgateSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
AuthgateSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\authgate-cli"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-authgate-cli.ps1
$url = 'https://github.com/TengMengHouy/authgate-cli/releases/download/v1.0.0/AuthgateSetup.exe'
$sha256 = '35B3D3066BEC05CF08C33DE15E39B83B4E2EB4C6FD4C5AF9AB3E25824D1B136D'
$file = Join-Path $env:TEMP 'AuthgateSetup.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