Commando’s om Python 3.8 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 Python.Python.3.8 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Python.Python.3.8 -e --silentwinget uninstall --id Python.Python.3.8 -e --silentPer installer
64-bits · EXE (WiX Burn) · Huidige gebruiker
Stille installatie
python-3.8.10-amd64.exe /quiet /norestartVerwijderen
msiexec /x {E9CD241B-9125-4624-9625-FF42D2F3647F} /qn /norestart- MSI-productcode
- {e9cd241b-9125-4624-9625-ff42d2f3647f}
- Registersleutel voor verwijderen
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e9cd241b-9125-4624-9625-ff42d2f3647f}
- UpgradeCode
- {6D2E28EF-5AEA-5A3E-B7B4-7E3B246D9DA8}
- DisplayVersion
- 3.8.10150.0
64-bits · EXE (WiX Burn) · Alle gebruikers
Stille installatie
python-3.8.10-amd64.exe /quiet /norestartVerwijderen
msiexec /x {E9CD241B-9125-4624-9625-FF42D2F3647F} /qn /norestart- MSI-productcode
- {e9cd241b-9125-4624-9625-ff42d2f3647f}
- Registersleutel voor verwijderen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e9cd241b-9125-4624-9625-ff42d2f3647f}
- UpgradeCode
- {6D2E28EF-5AEA-5A3E-B7B4-7E3B246D9DA8}
- DisplayVersion
- 3.8.10150.0
32-bits · EXE (WiX Burn) · Huidige gebruiker
Stille installatie
python-3.8.10.exe /quiet /norestartVerwijderen
msiexec /x {85379532-0003-4517-8FC4-6227B410C30C} /qn /norestart- MSI-productcode
- {85379532-0003-4517-8fc4-6227b410c30c}
- Registersleutel voor verwijderen
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{85379532-0003-4517-8fc4-6227b410c30c}
- UpgradeCode
- {7F7CEC53-74A3-5306-8929-AAEFBED71FF3}
- DisplayVersion
- 3.8.10150.0
32-bits · EXE (WiX Burn) · Alle gebruikers
Stille installatie
python-3.8.10.exe /quiet /norestartVerwijderen
msiexec /x {85379532-0003-4517-8FC4-6227B410C30C} /qn /norestart- MSI-productcode
- {85379532-0003-4517-8fc4-6227b410c30c}
- Registersleutel voor verwijderen
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{85379532-0003-4517-8fc4-6227b410c30c}
- UpgradeCode
- {7F7CEC53-74A3-5306-8929-AAEFBED71FF3}
- DisplayVersion
- 3.8.10150.0
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-python-3-8.ps1
$url = 'https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe'
$sha256 = '7628244CB53408B50639D2C1287C659F4E29D3DFDB9084B11AED5870C0C6A48A'
$file = Join-Path $env:TEMP 'python-3.8.10-amd64.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 '/quiet /norestart' -Wait install-python-3-8.ps1
$url = 'https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe'
$sha256 = '7628244CB53408B50639D2C1287C659F4E29D3DFDB9084B11AED5870C0C6A48A'
$file = Join-Path $env:TEMP 'python-3.8.10-amd64.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 '/quiet /norestart' -Wait install-python-3-8.ps1
$url = 'https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe'
$sha256 = 'AD07633A1F0CD795F3BF9DA33729F662281DF196B4567FA795829F3BB38A30AC'
$file = Join-Path $env:TEMP 'python-3.8.10.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 '/quiet /norestart' -Wait install-python-3-8.ps1
$url = 'https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe'
$sha256 = 'AD07633A1F0CD795F3BF9DA33729F662281DF196B4567FA795829F3BB38A30AC'
$file = Join-Path $env:TEMP 'python-3.8.10.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 '/quiet /norestart' -Wait