Ordres per instal·lar Syncthing sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id BillStewart.SyncthingWindowsSetup -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BillStewart.SyncthingWindowsSetup -e --silentwinget uninstall --id BillStewart.SyncthingWindowsSetup -e --silentPer instal·lador
32 bits · EXE (Inno Setup) · Usuari actual · en-US
Instal·lació silenciosa
syncthing-windows-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
syncthing-windows-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\syncthing-syncthing-foundation"- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1EEA2B6F-FD76-47D7-B74C-03E14CF043F9}_is1
32 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
syncthing-windows-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
syncthing-windows-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\syncthing-syncthing-foundation"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1EEA2B6F-FD76-47D7-B74C-03E14CF043F9}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\Syncthing
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-syncthing-syncthing-foundation.ps1
$url = 'https://github.com/Bill-Stewart/SyncthingWindowsSetup/releases/download/v2.0.2/syncthing-windows-setup.exe'
$sha256 = '05C6DCA01469634D340E77865FBE6158BD1C50F4A1A47A7F8834571B6EF83D7B'
$file = Join-Path $env:TEMP 'syncthing-windows-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 install-syncthing-syncthing-foundation.ps1
$url = 'https://github.com/Bill-Stewart/SyncthingWindowsSetup/releases/download/v2.0.2/syncthing-windows-setup.exe'
$sha256 = '05C6DCA01469634D340E77865FBE6158BD1C50F4A1A47A7F8834571B6EF83D7B'
$file = Join-Path $env:TEMP 'syncthing-windows-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