Commands for installing AstroGrep 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 AstroComma.AstroGrep -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AstroComma.AstroGrep -e --silentwinget uninstall --id AstroComma.AstroGrep -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
download /SCustom folder
download /S /D=C:\Apps\astrogrep- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AstroGrep
32-bit · EXE (NSIS) · All users
Silent install
download /SCustom folder
download /S /D=C:\Apps\astrogrep- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\AstroGrep
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-astrogrep.ps1
$url = 'https://sourceforge.net/projects/astrogrep/files/AstroGrep%20(Win32)/AstroGrep%20v4.4.9/AstroGrep_Setup_v4.4.9.exe/download'
$sha256 = '16DCD6660BAF2EADFD50394F9492E71E9EE68F90153208C2B4FA09F51EEFD009'
$file = Join-Path $env:TEMP 'download'
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 install-astrogrep.ps1
$url = 'https://sourceforge.net/projects/astrogrep/files/AstroGrep%20(Win32)/AstroGrep%20v4.4.9/AstroGrep_Setup_v4.4.9.exe/download'
$sha256 = '16DCD6660BAF2EADFD50394F9492E71E9EE68F90153208C2B4FA09F51EEFD009'
$file = Join-Path $env:TEMP 'download'
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