Commands for installing Hackaru 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 ktmouk.Hackaru -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ktmouk.Hackaru -e --silentwinget uninstall --id ktmouk.Hackaru -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
hackaru-desktop-v1.5.21.exe /SCustom folder
hackaru-desktop-v1.5.21.exe /S /D=C:\Apps\hackaruPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-hackaru.ps1
$url = 'https://github.com/hackaru-app/hackaru-desktop/releases/download/v1.5.21/hackaru-desktop-v1.5.21.exe'
$sha256 = '7238E403EDF8E0996FF8F5E862F44A0EDC1E767027B44785AD0DF9FEC4ADD700'
$file = Join-Path $env:TEMP 'hackaru-desktop-v1.5.21.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