Les commandes pour installer Rustic Backup sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec 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 --silentPar installateur
64 bits · EXE (Inno Setup) · en-US
Installation silencieuse
RusticBackup-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Dossier personnalisé
RusticBackup-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\rustic-backup"PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
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