Commands for installing STACK 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 TransIP.STACK -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TransIP.STACK -e --silentwinget uninstall --id TransIP.STACK -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
stack-2.8.2-20210809-setup.exe /SCustom folder
stack-2.8.2-20210809-setup.exe /S /D=C:\Apps\stackPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-stack.ps1
$url = 'https://mirror.transip.net/stack/software/windows/stack-2.8.2-20210809-setup.exe'
$sha256 = 'A6F71CCCC8184928D78082036F86F4181A1794AD6B99CFA3CE2D75CF7E5B048A'
$file = Join-Path $env:TEMP 'stack-2.8.2-20210809-setup.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