Commands for installing Nitropy 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 NitrokeyGmbH.Nitropy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NitrokeyGmbH.Nitropy -e --silentwinget uninstall --id NitrokeyGmbH.Nitropy -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i nitropy-v0.14.1-x64-windows-installer.msi /qn /norestartWrite a log
msiexec /i nitropy-v0.14.1-x64-windows-installer.msi /qn /norestart /l*v "%TEMP%\nitropy-install.log"Uninstall
msiexec /x {2BCD1294-5A3D-4421-9E19-039CC0ACA39F} /qn /norestart- MSI product code
- {2BCD1294-5A3D-4421-9E19-039CC0ACA39F}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2BCD1294-5A3D-4421-9E19-039CC0ACA39F}
- UpgradeCode
- {0EF8A76B-070C-407E-AED2-BED822A6F4F5}
- Install folder
- %ProgramFiles%\Nitrokey\Nitropy\_internal
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-nitropy.ps1
$url = 'https://github.com/Nitrokey/pynitrokey/releases/download/v0.14.1/nitropy-v0.14.1-x64-windows-installer.msi'
$sha256 = '21F1F005EDE3FCE29CC0B7316178447DBA7E9389F6DE7A096C2A3C7874EBF243'
$file = Join-Path $env:TEMP 'nitropy-v0.14.1-x64-windows-installer.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