Kommandon för att installera Syncthing 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 BillStewart.SyncthingWindowsSetup -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BillStewart.SyncthingWindowsSetup -e --silentwinget uninstall --id BillStewart.SyncthingWindowsSetup -e --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Aktuell användare · en-US
Tyst installation
syncthing-windows-setup-v2.1.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
syncthing-windows-setup-v2.1.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\syncthing-syncthing-foundation"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1EEA2B6F-FD76-47D7-B74C-03E14CF043F9}_is1
- Installationsmapp
- %LocalAppData%\Programs\Syncthing
32-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
syncthing-windows-setup-v2.1.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
syncthing-windows-setup-v2.1.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\syncthing-syncthing-foundation"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1EEA2B6F-FD76-47D7-B74C-03E14CF043F9}_is1
- Installationsmapp
- %ProgramFiles%\Syncthing
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-syncthing-syncthing-foundation.ps1
$url = 'https://github.com/Bill-Stewart/SyncthingWindowsSetup/releases/download/v2.1.1/syncthing-windows-setup-v2.1.1.exe'
$sha256 = 'DD255E8B8E59A0FFF25A0E09959A2C76F10FCE91BFDC8AB931D3436F483FCE51'
$file = Join-Path $env:TEMP 'syncthing-windows-setup-v2.1.1.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.1.1/syncthing-windows-setup-v2.1.1.exe'
$sha256 = 'DD255E8B8E59A0FFF25A0E09959A2C76F10FCE91BFDC8AB931D3436F483FCE51'
$file = Join-Path $env:TEMP 'syncthing-windows-setup-v2.1.1.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