Syncthingを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
32ビット · EXE(Inno Setup) · 現在のユーザー · en-US
サイレントインストール
syncthing-windows-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
syncthing-windows-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\syncthing-syncthing-foundation"- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1EEA2B6F-FD76-47D7-B74C-03E14CF043F9}_is1
32ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
syncthing-windows-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
syncthing-windows-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\syncthing-syncthing-foundation"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1EEA2B6F-FD76-47D7-B74C-03E14CF043F9}_is1
- インストール先フォルダー
- %ProgramFiles%\Syncthing
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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