Commando’s om pyfa zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
PowerShell
winget install --id pyfa.pyfa -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id pyfa.pyfa -e --silentwinget uninstall --id pyfa.pyfa -e --silentPer installer
64-bits · EXE (Inno Setup) · Alle gebruikers
Stille installatie
pyfa-v2.70.1-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Andere map
pyfa-v2.70.1-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pyfa"- Registersleutel voor verwijderen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3DA39096-C08D-49CD-90E0-1D177F32C8AA}_is1
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-pyfa.ps1
$url = 'https://github.com/pyfa-org/Pyfa/releases/download/v2.70.1/pyfa-v2.70.1-win.exe'
$sha256 = '26BD8D484524972D6CA33953195134FC7DD9614A93995780B30A2C9CDFF2D47A'
$file = Join-Path $env:TEMP 'pyfa-v2.70.1-win.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait