Kommandon för att installera Python 3.6 utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id Python.Python.3.6 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Python.Python.3.6 -e --silentwinget uninstall --id Python.Python.3.6 -e --silentPer installationsfil
64-bitars · EXE (WiX Burn) · Aktuell användare
Tyst installation
python-3.6.8-amd64.exe /quiet /norestartAvinstallation
msiexec /x {1AA5398D-0CF8-49E6-ADB0-86365145C01C} /qn /norestart- MSI-produktkod
- {1aa5398d-0cf8-49e6-adb0-86365145c01c}
- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1aa5398d-0cf8-49e6-adb0-86365145c01c}
- UpgradeCode
- {001956A8-8F9F-5604-ACE9-788F9B15DB5C}
- DisplayVersion
- 3.6.8150.0
64-bitars · EXE (WiX Burn) · Alla användare
Tyst installation
python-3.6.8-amd64.exe /quiet /norestartAvinstallation
msiexec /x {1AA5398D-0CF8-49E6-ADB0-86365145C01C} /qn /norestart- MSI-produktkod
- {1aa5398d-0cf8-49e6-adb0-86365145c01c}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1aa5398d-0cf8-49e6-adb0-86365145c01c}
- UpgradeCode
- {001956A8-8F9F-5604-ACE9-788F9B15DB5C}
- DisplayVersion
- 3.6.8150.0
32-bitars · EXE (WiX Burn) · Aktuell användare
Tyst installation
python-3.6.8.exe /quiet /norestartAvinstallation
msiexec /x {D61D9FB7-32FB-437C-91B2-545C8533CFF1} /qn /norestart- MSI-produktkod
- {d61d9fb7-32fb-437c-91b2-545c8533cff1}
- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d61d9fb7-32fb-437c-91b2-545c8533cff1}
- UpgradeCode
- {96CB5FA2-C2EF-5E31-A06C-A5AB703698BE}
- DisplayVersion
- 3.6.8150.0
32-bitars · EXE (WiX Burn) · Alla användare
Tyst installation
python-3.6.8.exe /quiet /norestartAvinstallation
msiexec /x {D61D9FB7-32FB-437C-91B2-545C8533CFF1} /qn /norestart- MSI-produktkod
- {d61d9fb7-32fb-437c-91b2-545c8533cff1}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d61d9fb7-32fb-437c-91b2-545c8533cff1}
- UpgradeCode
- {96CB5FA2-C2EF-5E31-A06C-A5AB703698BE}
- DisplayVersion
- 3.6.8150.0
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-python-3-6.ps1
$url = 'https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe'
$sha256 = '96088A58B7C43BC83B84E6B67F15E8706C614023DD64F9A5A14E81FF824ADADC'
$file = Join-Path $env:TEMP 'python-3.6.8-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-6.ps1
$url = 'https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe'
$sha256 = '96088A58B7C43BC83B84E6B67F15E8706C614023DD64F9A5A14E81FF824ADADC'
$file = Join-Path $env:TEMP 'python-3.6.8-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-6.ps1
$url = 'https://www.python.org/ftp/python/3.6.8/python-3.6.8.exe'
$sha256 = '89871D432BC06E4630D7B64CB1A8451E53C80E68DE29029976B12AAD7DBFA5A0'
$file = Join-Path $env:TEMP 'python-3.6.8.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-6.ps1
$url = 'https://www.python.org/ftp/python/3.6.8/python-3.6.8.exe'
$sha256 = '89871D432BC06E4630D7B64CB1A8451E53C80E68DE29029976B12AAD7DBFA5A0'
$file = Join-Path $env:TEMP 'python-3.6.8.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