Kommandoer for å installere pyfa uten spørsmål, fjerne programmet igjen og gjenkjenne det i distribusjonsverktøy. En kommando vises bare når den er sikker: fra manifestet eller som dokumentert standard for installasjonsteknologien.
Relatert veiledning: Parametre for stille installasjon: MSI, NSIS, Inno · Avinstaller et program via registeret eller PowerShell
Med 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 installasjonsfil
64-bit · EXE (Inno Setup) · Alle brukere
Stille installasjon
pyfa-v2.70.0-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
pyfa-v2.70.0-win.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pyfa"- Registernøkkel for avinstallering
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3DA39096-C08D-49CD-90E0-1D177F32C8AA}_is1
PowerShell: last ned, kontroller, installer
Laster ned den offisielle filen, kontrollerer SHA256-summen og installerer i stillhet.
install-pyfa.ps1
$url = 'https://github.com/pyfa-org/Pyfa/releases/download/v2.70.0/pyfa-v2.70.0-win.exe'
$sha256 = '368980183F23A20A308BC98F5111516DB907E15C6DFB3C174699A0BCD279B3A7'
$file = Join-Path $env:TEMP 'pyfa-v2.70.0-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