Каманды, каб усталяваць праграму Python Launcher без пытанняў, выдаліць яе і выявіць у сістэмах разгортвання. Каманда паказваецца, толькі калі яна вядомая дакладна: з маніфеста або з апісаных параметраў тэхналогіі ўсталёўшчыка.
Інструкцыя па тэме: Ключы ціхай устаноўкі: MSI, NSIS, Inno Setup · Выдаленне праграмы праз рэестр або PowerShell
Праз winget
PowerShell
winget install --id Python.Launcher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Python.Launcher -e --silentwinget uninstall --id Python.Launcher -e --silentПа ўсталёўшчыках
32-біт · MSI · Усе карыстальнікі
Ціхая ўстаноўка
msiexec /i launcher.msi /qn /norestartЗапісаць журнал
msiexec /i launcher.msi /qn /norestart /l*v "%TEMP%\python-launcher-install.log"Выдаленне
msiexec /x {E81C7963-7B6A-4296-9368-C4CA4D78470A} /qn /norestart- Код прадукту MSI
- {E81C7963-7B6A-4296-9368-C4CA4D78470A}
- Раздзел выдалення ў рэестры
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{E81C7963-7B6A-4296-9368-C4CA4D78470A}
- UpgradeCode
- {1B68A0EC-4DD3-5134-840E-73854B0863F1}
- Папка ўстаноўкі
- .
- DisplayVersion
- 3.14.7150.0
PowerShell: спампаваць, праверыць, усталяваць
Спампоўвае афіцыйны файл, правярае SHA256 і ціха ўсталёўвае праграму.
install-python-launcher.ps1
$url = 'https://www.python.org/ftp/python/3.14.7/win32/launcher.msi'
$sha256 = 'E0FE589EB1C7D4E474C7D2AC2D9D2655F6FBA28079C93FD6F6819E423CEFD96A'
$file = Join-Path $env:TEMP 'launcher.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait