Kommandoer til at installere Python 3.6 uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
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 --silentPr. installationsfil
64-bit · EXE (WiX Burn) · Aktuel bruger
Lydløs installation
python-3.6.8-amd64.exe /quiet /norestartAfinstallation
msiexec /x {1AA5398D-0CF8-49E6-ADB0-86365145C01C} /qn /norestart- MSI-produktkode
- {1aa5398d-0cf8-49e6-adb0-86365145c01c}
- Afinstallationsnøgle i registreringsdatabasen
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1aa5398d-0cf8-49e6-adb0-86365145c01c}
- UpgradeCode
- {001956A8-8F9F-5604-ACE9-788F9B15DB5C}
- DisplayVersion
- 3.6.8150.0
64-bit · EXE (WiX Burn) · Alle brugere
Lydløs installation
python-3.6.8-amd64.exe /quiet /norestartAfinstallation
msiexec /x {1AA5398D-0CF8-49E6-ADB0-86365145C01C} /qn /norestart- MSI-produktkode
- {1aa5398d-0cf8-49e6-adb0-86365145c01c}
- Afinstallationsnøgle i registreringsdatabasen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1aa5398d-0cf8-49e6-adb0-86365145c01c}
- UpgradeCode
- {001956A8-8F9F-5604-ACE9-788F9B15DB5C}
- DisplayVersion
- 3.6.8150.0
32-bit · EXE (WiX Burn) · Aktuel bruger
Lydløs installation
python-3.6.8.exe /quiet /norestartAfinstallation
msiexec /x {D61D9FB7-32FB-437C-91B2-545C8533CFF1} /qn /norestart- MSI-produktkode
- {d61d9fb7-32fb-437c-91b2-545c8533cff1}
- Afinstallationsnøgle i registreringsdatabasen
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d61d9fb7-32fb-437c-91b2-545c8533cff1}
- UpgradeCode
- {96CB5FA2-C2EF-5E31-A06C-A5AB703698BE}
- DisplayVersion
- 3.6.8150.0
32-bit · EXE (WiX Burn) · Alle brugere
Lydløs installation
python-3.6.8.exe /quiet /norestartAfinstallation
msiexec /x {D61D9FB7-32FB-437C-91B2-545C8533CFF1} /qn /norestart- MSI-produktkode
- {d61d9fb7-32fb-437c-91b2-545c8533cff1}
- Afinstallationsnøgle i registreringsdatabasen
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d61d9fb7-32fb-437c-91b2-545c8533cff1}
- UpgradeCode
- {96CB5FA2-C2EF-5E31-A06C-A5AB703698BE}
- DisplayVersion
- 3.6.8150.0
PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
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