Commands for installing Python 3.12 without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Python.Python.3.12 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Python.Python.3.12 -e --silentwinget uninstall --id Python.Python.3.12 -e --silentBy installer
64-bit · EXE (WiX Burn) · Current user
Silent install
python-3.12.10-amd64.exe /quiet /norestartUninstall
msiexec /x {B6CE88EB-2CE3-4D91-8EFC-425AE1F48CAF} /qn /norestart- MSI product code
- {b6ce88eb-2ce3-4d91-8efc-425ae1f48caf}
- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{b6ce88eb-2ce3-4d91-8efc-425ae1f48caf}
- UpgradeCode
- {114AEC44-152B-5746-952F-F20CE3CAB54A}
- DisplayVersion
- 3.12.10150.0
64-bit · EXE (WiX Burn) · All users
Silent install
python-3.12.10-amd64.exe /quiet /norestartUninstall
msiexec /x {B6CE88EB-2CE3-4D91-8EFC-425AE1F48CAF} /qn /norestart- MSI product code
- {b6ce88eb-2ce3-4d91-8efc-425ae1f48caf}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{b6ce88eb-2ce3-4d91-8efc-425ae1f48caf}
- UpgradeCode
- {114AEC44-152B-5746-952F-F20CE3CAB54A}
- DisplayVersion
- 3.12.10150.0
ARM64 · EXE (WiX Burn) · Current user
Silent install
python-3.12.10-arm64.exe /quiet /norestartUninstall
msiexec /x {283F8874-BFD9-4AA8-A08C-FD438A653175} /qn /norestart- MSI product code
- {283f8874-bfd9-4aa8-a08c-fd438a653175}
- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{283f8874-bfd9-4aa8-a08c-fd438a653175}
- UpgradeCode
- {1C6E0C70-86FC-5723-BB61-9555AC97B97E}
- DisplayVersion
- 3.12.10150.0
ARM64 · EXE (WiX Burn) · All users
Silent install
python-3.12.10-arm64.exe /quiet /norestartUninstall
msiexec /x {283F8874-BFD9-4AA8-A08C-FD438A653175} /qn /norestart- MSI product code
- {283f8874-bfd9-4aa8-a08c-fd438a653175}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{283f8874-bfd9-4aa8-a08c-fd438a653175}
- UpgradeCode
- {1C6E0C70-86FC-5723-BB61-9555AC97B97E}
- DisplayVersion
- 3.12.10150.0
32-bit · EXE (WiX Burn) · Current user
Silent install
python-3.12.10.exe /quiet /norestartUninstall
msiexec /x {D582057F-941E-4F0C-9219-B3AC49A5078D} /qn /norestart- MSI product code
- {d582057f-941e-4f0c-9219-b3ac49a5078d}
- Uninstall registry key
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d582057f-941e-4f0c-9219-b3ac49a5078d}
- UpgradeCode
- {7D426D03-49F7-5C13-8BB0-53574B728B6E}
- DisplayVersion
- 3.12.10150.0
32-bit · EXE (WiX Burn) · All users
Silent install
python-3.12.10.exe /quiet /norestartUninstall
msiexec /x {D582057F-941E-4F0C-9219-B3AC49A5078D} /qn /norestart- MSI product code
- {d582057f-941e-4f0c-9219-b3ac49a5078d}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d582057f-941e-4f0c-9219-b3ac49a5078d}
- UpgradeCode
- {7D426D03-49F7-5C13-8BB0-53574B728B6E}
- DisplayVersion
- 3.12.10150.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-python-3-12.ps1
$url = 'https://www.python.org/ftp/python/3.12.10/python-3.12.10-amd64.exe'
$sha256 = '67B5635E80EA51072B87941312D00EC8927C4DB9BA18938F7AD2D27B328B95FB'
$file = Join-Path $env:TEMP 'python-3.12.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-12.ps1
$url = 'https://www.python.org/ftp/python/3.12.10/python-3.12.10-amd64.exe'
$sha256 = '67B5635E80EA51072B87941312D00EC8927C4DB9BA18938F7AD2D27B328B95FB'
$file = Join-Path $env:TEMP 'python-3.12.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-12.ps1
$url = 'https://www.python.org/ftp/python/3.12.10/python-3.12.10-arm64.exe'
$sha256 = '377AC8FD478987940088E879441E702A71B53164D2A1E6F1D51FF77A7E470258'
$file = Join-Path $env:TEMP 'python-3.12.10-arm64.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-12.ps1
$url = 'https://www.python.org/ftp/python/3.12.10/python-3.12.10-arm64.exe'
$sha256 = '377AC8FD478987940088E879441E702A71B53164D2A1E6F1D51FF77A7E470258'
$file = Join-Path $env:TEMP 'python-3.12.10-arm64.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-12.ps1
$url = 'https://www.python.org/ftp/python/3.12.10/python-3.12.10.exe'
$sha256 = 'FDFE385B94F5B8785A0226A886979527FD26EB65DEFDBF29992FD22CC4B0E31E'
$file = Join-Path $env:TEMP 'python-3.12.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-12.ps1
$url = 'https://www.python.org/ftp/python/3.12.10/python-3.12.10.exe'
$sha256 = 'FDFE385B94F5B8785A0226A886979527FD26EB65DEFDBF29992FD22CC4B0E31E'
$file = Join-Path $env:TEMP 'python-3.12.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