Kommandoer for å installere Rustic Backup 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 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 installasjonsfil
64-bit · EXE (Inno Setup) · en-US
Stille installasjon
RusticBackup-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
RusticBackup-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\rustic-backup"PowerShell: last ned, kontroller, installer
Laster ned den offisielle filen, kontrollerer SHA256-summen og installerer i stillhet.
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