Ordres per instal·lar Python Launcher 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 Python.Launcher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Python.Launcher -e --silentwinget uninstall --id Python.Launcher -e --silentPer instal·lador
32 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i launcher.msi /qn /norestartDesar un registre
msiexec /i launcher.msi /qn /norestart /l*v "%TEMP%\python-launcher-install.log"Desinstal·lar
msiexec /x {E81C7963-7B6A-4296-9368-C4CA4D78470A} /qn /norestart- Codi de producte MSI
- {E81C7963-7B6A-4296-9368-C4CA4D78470A}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{E81C7963-7B6A-4296-9368-C4CA4D78470A}
- UpgradeCode
- {1B68A0EC-4DD3-5134-840E-73854B0863F1}
- Carpeta d’instal·lació
- .
- DisplayVersion
- 3.14.7150.0
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-python-launcher.ps1
$url = 'https://www.python.org/ftp/python/3.14.7/win32/launcher.msi'
$sha256 = 'E0FE589EB1C7D4E474C7D2AC2D9D2655F6FBA28079C93FD6F6819E423CEFD96A'
$file = Join-Path $env:TEMP 'launcher.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