Time-Sync Serverを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Speed-Soft.Time-Sync.Server -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Speed-Soft.Time-Sync.Server -e --silentwinget uninstall --id Speed-Soft.Time-Sync.Server -e --silentインストーラー別
32ビット · EXE
サイレントインストール
setup_timesync_191.exe /Silent=1 /Type=Server /Force=1PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-time-sync-server.ps1
$url = 'https://www.speed-soft.de/files/setup_timesync_191.exe'
$sha256 = '93F3D36356A4BD2A075CB7BBA52EDC53983526A070332B33F6D295C0E7F79E36'
$file = Join-Path $env:TEMP 'setup_timesync_191.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 '/Silent=1 /Type=Server /Force=1' -Wait