Befehle, um TokenTool 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 RPTools.TokenTool -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RPTools.TokenTool -e --silentwinget uninstall --id RPTools.TokenTool -e --silentNach Installer
64-Bit · MSI · Aktueller Benutzer · en-US
Stille Installation
msiexec /i TokenTool-2.3.0.msi /qn /norestartProtokoll schreiben
msiexec /i TokenTool-2.3.0.msi /qn /norestart /l*v "%TEMP%\tokentool-install.log"Deinstallation
msiexec /x {E9E9FC30-B11E-350B-B50C-66A0A6F7B883} /qn /norestart- MSI-Produktcode
- {E9E9FC30-B11E-350B-B50C-66A0A6F7B883}
- Deinstallationsschlüssel in der Registry
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E9E9FC30-B11E-350B-B50C-66A0A6F7B883}
- UpgradeCode
- {0651119A-457A-3D72-B114-3CA1A711E582}
- Installationsordner
- %LocalAppData%\TokenTool
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-tokentool.ps1
$url = 'https://github.com/RPTools/TokenTool/releases/download/2.3.0/TokenTool-2.3.0.msi'
$sha256 = '99E13087C0F7A70D079B72270896867286CDE339173B65509D70DE60EA6C878E'
$file = Join-Path $env:TEMP 'TokenTool-2.3.0.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