Commando’s om Python Tk Gui Builder zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
winget install --id CarlWenrich.PythonTkGuiBuilder -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CarlWenrich.PythonTkGuiBuilder -e --silentwinget uninstall --id CarlWenrich.PythonTkGuiBuilder -e --silentPer installer
Elke processor · MSI · en-US
msiexec /i download /qn /norestart /quietmsiexec /i download /qn /norestart /quiet /l*v "%TEMP%\python-tk-gui-builder-install.log"PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
$url = 'https://sourceforge.net/projects/ptkgb/files/OldFiles/ptkgb.msi/download'
$sha256 = 'DDB1A02C63EBE05566FE526A9BEC2992F14D115CFA750B4740B8C2621C395CFE'
$file = Join-Path $env:TEMP 'download'
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', '/quiet' -Wait