Commands for installing OpenTokenUsage 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 PowerUserZ.OpenTokenUsage -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PowerUserZ.OpenTokenUsage -e --silentwinget uninstall --id PowerUserZ.OpenTokenUsage -e --silentBy installer
64-bit · EXE (NSIS) · Current user · en-US
Silent install
OpenTokenUsage_0.9.2_x64-setup.exe /SCustom folder
OpenTokenUsage_0.9.2_x64-setup.exe /S /D=C:\Apps\opentokenusage- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTokenUsage
- Install folder
- %LocalAppData%\OpenTokenUsage
- DisplayVersion
- 0.9.2
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-opentokenusage.ps1
$url = 'https://github.com/poweruserz/OpenTokenUsage/releases/download/v0.9.2/OpenTokenUsage_0.9.2_x64-setup.exe'
$sha256 = '36FF5AE07940BDF69903259407A5D9CA0A50CCC1F2C83A332DCCB02684181F1A'
$file = Join-Path $env:TEMP 'OpenTokenUsage_0.9.2_x64-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