Kommandoer til at installere pychess 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 pychess.pychess -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id pychess.pychess -e --silentwinget uninstall --id pychess.pychess -e --silentPr. installationsfil
64-bit · MSI · en-US
Lydløs installation
msiexec /i pychess-1.0.5-mingw_x86_64.msi /qn /norestartSkriv en log
msiexec /i pychess-1.0.5-mingw_x86_64.msi /qn /norestart /l*v "%TEMP%\pychess-install.log"Afinstallation
msiexec /x {63BA8731-A3BF-4957-8E51-4C8342DF1365} /qn /norestart- MSI-produktkode
- {63BA8731-A3BF-4957-8E51-4C8342DF1365}
- Afinstallationsnøgle i registreringsdatabasen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{63BA8731-A3BF-4957-8E51-4C8342DF1365}
- UpgradeCode
- {5167584F-C196-428F-BE40-4C861025E90A}
PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
install-pychess.ps1
$url = 'https://github.com/pychess/pychess/releases/download/1.0.5/pychess-1.0.5-mingw_x86_64.msi'
$sha256 = 'A2ED5A66874041B2504D00643D7CB050D60A155979BBB3E476675C88A61DC79C'
$file = Join-Path $env:TEMP 'pychess-1.0.5-mingw_x86_64.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