Commando’s om winpython 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
PowerShell
winget install --id winpython.winpython -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id winpython.winpython -e --silentwinget uninstall --id winpython.winpython -e --silentPer installer
32-bits · EXE
Stille installatie
Winpython64-3.12.0.1dotb5.exe -y -o".\winpython"PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-winpython.ps1
$url = 'https://github.com/winpython/winpython/releases/download/7.0.20231126final/Winpython64-3.12.0.1dotb5.exe'
$sha256 = '2AFFFD563B0FC5C7A49B3A3D3500A9A624E4E03FE8B616CAE808027916BABCB3'
$file = Join-Path $env:TEMP 'Winpython64-3.12.0.1dotb5.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 '-y -o".\winpython"' -Wait