Kommandon för att installera Rustic Backup 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
PowerShell
winget install --id yanlearn2.rustic-backup -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id yanlearn2.rustic-backup -e --silentwinget uninstall --id yanlearn2.rustic-backup -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · en-US
Tyst installation
RusticBackup-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
RusticBackup-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\rustic-backup"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-rustic-backup.ps1
$url = 'https://github.com/yanlearn2/rustic-backup-rs/releases/download/v0.2.1/RusticBackup-Setup.exe'
$sha256 = 'DAA00A8A0F6D88C62B53BD8952BBFE46AE6B74B7F40E8D9D9784AC963577C902'
$file = Join-Path $env:TEMP 'RusticBackup-Setup.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