Kommandon för att installera Pendulums utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
winget install --id SwingTeam.Pendulums -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SwingTeam.Pendulums -e --silentwinget uninstall --id SwingTeam.Pendulums -e --silentPer installationsfil
64-bitars · EXE (NSIS)
Pendulums.exe /SPendulums.exe /S /D=C:\Apps\pendulumsPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
$url = 'https://github.com/Swing-team/pendulums-web-client/releases/download/v1.1.0/Pendulums.exe'
$sha256 = 'BCA6BE34ED17626882595EB1F79512A94D16A7DF22C98FA0E5A9EDCEB42A30A8'
$file = Join-Path $env:TEMP 'Pendulums.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 '/S' -Wait