Commands for installing API Spector 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 Testsmith.APISpector -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Testsmith.APISpector -e --silentwinget uninstall --id Testsmith.APISpector -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
API-Spector-Setup-0.9.11.exe /SCustom folder
API-Spector-Setup-0.9.11.exe /S /D=C:\Apps\api-spector- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\95cc2717-24c6-5b98-ad69-d94d625ca35a
- Install folder
- %LocalAppData%\Programs\@testsmithapi-spector
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-api-spector.ps1
$url = 'https://github.com/testsmith-io/api-spector/releases/download/0.9.11/API-Spector-Setup-0.9.11.exe'
$sha256 = 'F53B17F35ECEB11BB22E35974A845EF88BB543A320DFF962A901CC613E12E351'
$file = Join-Path $env:TEMP 'API-Spector-Setup-0.9.11.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