Insyncを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Insynchq.Insync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Insynchq.Insync -e --silentwinget uninstall --id Insynchq.Insync -e --silentインストーラー別
32ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Insync-3.8.11.50514.exe /Sインストール先を指定
Insync-3.8.11.50514.exe /S /D=C:\Apps\insync- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Insync
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-insync.ps1
$url = 'https://cdn.insynchq.com/builds/win/Insync-3.8.11.50514.exe'
$sha256 = 'AE2BC8FC559E269374696E9D1CB00A918FE5CBA9707348E48C6176581587C780'
$file = Join-Path $env:TEMP 'Insync-3.8.11.50514.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 '/S' -Wait