Ordres per instal·lar winpython-dot sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id winpython.winpython-dot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id winpython.winpython-dot -e --silentwinget uninstall --id winpython.winpython-dot -e --silentPer instal·lador
64 bits · EXE
Instal·lació silenciosa
Winpython64-3.11.4.0dot.exe -y -o".\winpython"32 bits · EXE
Instal·lació silenciosa
Winpython64-3.11.4.0dot.exe -y -o".\winpython"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-winpython-dot.ps1
$url = 'https://github.com/winpython/winpython/releases/download/6.4.20230625final/Winpython64-3.11.4.0dot.exe'
$sha256 = '09DACBF391ADB11ACE34EB90CD02AE3FC3749DF612B8A1FD288E7E5C47BC1973'
$file = Join-Path $env:TEMP 'Winpython64-3.11.4.0dot.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 install-winpython-dot.ps1
$url = 'https://github.com/winpython/winpython/releases/download/6.4.20230625final/Winpython64-3.11.4.0dot.exe'
$sha256 = '09DACBF391ADB11ACE34EB90CD02AE3FC3749DF612B8A1FD288E7E5C47BC1973'
$file = Join-Path $env:TEMP 'Winpython64-3.11.4.0dot.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