Commands for installing Token Use 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 RussMckendrick.TokenUse -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RussMckendrick.TokenUse -e --silentwinget uninstall --id RussMckendrick.TokenUse -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i tokenuse-desktop-windows-amd64.msi /qn /norestartWrite a log
msiexec /i tokenuse-desktop-windows-amd64.msi /qn /norestart /l*v "%TEMP%\token-use-install.log"Uninstall
msiexec /x {93102F09-1278-4B1A-AC93-5C455D49B515} /qn /norestart- MSI product code
- {93102F09-1278-4B1A-AC93-5C455D49B515}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{93102F09-1278-4B1A-AC93-5C455D49B515}
- UpgradeCode
- {0D564768-FF70-586D-86B1-52A89AC002D4}
- Install folder
- %ProgramFiles%\Token Use
- DisplayVersion
- 1.2.8
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-token-use.ps1
$url = 'https://github.com/russmckendrick/tokenuse/releases/download/v1.2.8/tokenuse-desktop-windows-amd64.msi'
$sha256 = 'E401F19B2828564FB3507C4E454C8FFECB47CA289FA801A49019093BACA99138'
$file = Join-Path $env:TEMP 'tokenuse-desktop-windows-amd64.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