Python 3.12を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
64ビット · EXE(WiX Burn) · 現在のユーザー
サイレントインストール
python-3.12.10-amd64.exe /quiet /norestartアンインストール
msiexec /x {B6CE88EB-2CE3-4D91-8EFC-425AE1F48CAF} /qn /norestart- MSIプロダクトコード
- {b6ce88eb-2ce3-4d91-8efc-425ae1f48caf}
- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{b6ce88eb-2ce3-4d91-8efc-425ae1f48caf}
- UpgradeCode
- {114AEC44-152B-5746-952F-F20CE3CAB54A}
- DisplayVersion
- 3.12.10150.0
64ビット · EXE(WiX Burn) · すべてのユーザー
サイレントインストール
python-3.12.10-amd64.exe /quiet /norestartアンインストール
msiexec /x {B6CE88EB-2CE3-4D91-8EFC-425AE1F48CAF} /qn /norestart- MSIプロダクトコード
- {b6ce88eb-2ce3-4d91-8efc-425ae1f48caf}
- アンインストール用レジストリキー
- 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) · 現在のユーザー
サイレントインストール
python-3.12.10-arm64.exe /quiet /norestartアンインストール
msiexec /x {283F8874-BFD9-4AA8-A08C-FD438A653175} /qn /norestart- MSIプロダクトコード
- {283f8874-bfd9-4aa8-a08c-fd438a653175}
- アンインストール用レジストリキー
- 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) · すべてのユーザー
サイレントインストール
python-3.12.10-arm64.exe /quiet /norestartアンインストール
msiexec /x {283F8874-BFD9-4AA8-A08C-FD438A653175} /qn /norestart- MSIプロダクトコード
- {283f8874-bfd9-4aa8-a08c-fd438a653175}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{283f8874-bfd9-4aa8-a08c-fd438a653175}
- UpgradeCode
- {1C6E0C70-86FC-5723-BB61-9555AC97B97E}
- DisplayVersion
- 3.12.10150.0
32ビット · EXE(WiX Burn) · 現在のユーザー
サイレントインストール
python-3.12.10.exe /quiet /norestartアンインストール
msiexec /x {D582057F-941E-4F0C-9219-B3AC49A5078D} /qn /norestart- MSIプロダクトコード
- {d582057f-941e-4f0c-9219-b3ac49a5078d}
- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d582057f-941e-4f0c-9219-b3ac49a5078d}
- UpgradeCode
- {7D426D03-49F7-5C13-8BB0-53574B728B6E}
- DisplayVersion
- 3.12.10150.0
32ビット · EXE(WiX Burn) · すべてのユーザー
サイレントインストール
python-3.12.10.exe /quiet /norestartアンインストール
msiexec /x {D582057F-941E-4F0C-9219-B3AC49A5078D} /qn /norestart- MSIプロダクトコード
- {d582057f-941e-4f0c-9219-b3ac49a5078d}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d582057f-941e-4f0c-9219-b3ac49a5078d}
- UpgradeCode
- {7D426D03-49F7-5C13-8BB0-53574B728B6E}
- DisplayVersion
- 3.12.10150.0
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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