Příkazy pro instalaci programu Syncany bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id Syncany.Syncany -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Syncany.Syncany -e --silentwinget uninstall --id Syncany.Syncany -e --silentPodle instalátoru
64bit · EXE (Inno Setup)
Tichá instalace
syncany-0.4.9-alpha~x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
syncany-0.4.9-alpha~x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\syncany"32bit · EXE (Inno Setup)
Tichá instalace
syncany-0.4.9-alpha~x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
syncany-0.4.9-alpha~x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\syncany"PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-syncany.ps1
$url = 'https://get.syncany.org/dist/releases/syncany-0.4.9-alpha~x86_64.exe'
$sha256 = '327AE91473D361109BC822F994161FD01F21B1A0AA48B14F4D01BB241529D920'
$file = Join-Path $env:TEMP 'syncany-0.4.9-alpha~x86_64.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 install-syncany.ps1
$url = 'https://get.syncany.org/dist/releases/syncany-0.4.9-alpha~x86.exe'
$sha256 = '962B9516DFA8E4CE2CC9B9CB971EBF2180EFA95AE686E59A5D6B2B69C1576F1E'
$file = Join-Path $env:TEMP 'syncany-0.4.9-alpha~x86.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