Befehle, um Token Use ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit 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 --silentNach Installer
64-Bit · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i tokenuse-desktop-windows-amd64.msi /qn /norestartProtokoll schreiben
msiexec /i tokenuse-desktop-windows-amd64.msi /qn /norestart /l*v "%TEMP%\token-use-install.log"Deinstallation
msiexec /x {0E14193E-3C1D-4060-9907-DF0387BB1A71} /qn /norestart- MSI-Produktcode
- {0E14193E-3C1D-4060-9907-DF0387BB1A71}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0E14193E-3C1D-4060-9907-DF0387BB1A71}
- UpgradeCode
- {0D564768-FF70-586D-86B1-52A89AC002D4}
- Installationsordner
- %ProgramFiles%\Token Use
- DisplayVersion
- 1.2.7
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-token-use.ps1
$url = 'https://github.com/russmckendrick/tokenuse/releases/download/v1.2.7/tokenuse-desktop-windows-amd64.msi'
$sha256 = '46DD34FC23CDA82731DD8D2BE5961363D4D3C1E9CF5E6D5D771E24D0EBEF11BB'
$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