أوامر لتثبيت برنامج Python 3.6 دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام 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 --silentحسب المثبّت
64 بت · EXE (WiX Burn) · المستخدم الحالي
التثبيت الصامت
python-3.6.8-amd64.exe /quiet /norestartإلغاء التثبيت
msiexec /x {1AA5398D-0CF8-49E6-ADB0-86365145C01C} /qn /norestart- رمز منتج MSI
- {1aa5398d-0cf8-49e6-adb0-86365145c01c}
- مفتاح إلغاء التثبيت في السجل
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1aa5398d-0cf8-49e6-adb0-86365145c01c}
- UpgradeCode
- {001956A8-8F9F-5604-ACE9-788F9B15DB5C}
- DisplayVersion
- 3.6.8150.0
64 بت · EXE (WiX Burn) · جميع المستخدمين
التثبيت الصامت
python-3.6.8-amd64.exe /quiet /norestartإلغاء التثبيت
msiexec /x {1AA5398D-0CF8-49E6-ADB0-86365145C01C} /qn /norestart- رمز منتج MSI
- {1aa5398d-0cf8-49e6-adb0-86365145c01c}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1aa5398d-0cf8-49e6-adb0-86365145c01c}
- UpgradeCode
- {001956A8-8F9F-5604-ACE9-788F9B15DB5C}
- DisplayVersion
- 3.6.8150.0
32 بت · EXE (WiX Burn) · المستخدم الحالي
التثبيت الصامت
python-3.6.8.exe /quiet /norestartإلغاء التثبيت
msiexec /x {D61D9FB7-32FB-437C-91B2-545C8533CFF1} /qn /norestart- رمز منتج MSI
- {d61d9fb7-32fb-437c-91b2-545c8533cff1}
- مفتاح إلغاء التثبيت في السجل
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d61d9fb7-32fb-437c-91b2-545c8533cff1}
- UpgradeCode
- {96CB5FA2-C2EF-5E31-A06C-A5AB703698BE}
- DisplayVersion
- 3.6.8150.0
32 بت · EXE (WiX Burn) · جميع المستخدمين
التثبيت الصامت
python-3.6.8.exe /quiet /norestartإلغاء التثبيت
msiexec /x {D61D9FB7-32FB-437C-91B2-545C8533CFF1} /qn /norestart- رمز منتج MSI
- {d61d9fb7-32fb-437c-91b2-545c8533cff1}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{d61d9fb7-32fb-437c-91b2-545c8533cff1}
- UpgradeCode
- {96CB5FA2-C2EF-5E31-A06C-A5AB703698BE}
- DisplayVersion
- 3.6.8150.0
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
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