Commands for installing TestNav 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 Pearson.TestNav -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Pearson.TestNav -e --silentwinget uninstall --id Pearson.TestNav -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i testnav-1.15.7.msi /qn /norestartWrite a log
msiexec /i testnav-1.15.7.msi /qn /norestart /l*v "%TEMP%\testnav-install.log"Uninstall
msiexec /x {98D1D4FC-DE66-4128-B0E0-C45BF9CF1268} /qn /norestart- MSI product code
- {98D1D4FC-DE66-4128-B0E0-C45BF9CF1268}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{98D1D4FC-DE66-4128-B0E0-C45BF9CF1268}
- UpgradeCode
- {94602611-7C92-43D0-B85C-812AE54A4373}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-testnav.ps1
$url = 'https://download.testnav.com/_testnavinstallers/testnav-1.15.7.msi'
$sha256 = 'C2C8F7E17DAF2558FC4A0980D2BA2AFB3932AD0FE10C0D3CFD85B156E9C83D5A'
$file = Join-Path $env:TEMP 'testnav-1.15.7.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait