Smart Switchを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Samsung.SmartSwitch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Samsung.SmartSwitch -e --silentwinget uninstall --id Samsung.SmartSwitch -e --silentインストーラー別
32ビット · EXE
サイレントインストール
Smart.Switch.PC_Setup.exe /S- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield_{74FA5314-85C8-4E2A-907D-D9ECCCB770A7}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-smart-switch.ps1
$url = 'https://downloadcenter.samsung.com/content/SW/202406/20240626140001115/Smart.Switch.PC_Setup.exe'
$sha256 = '9D4146D3D9B8E8C557CF9386DE7434D8574681D5D54A2970D14915BE6F9E67E6'
$file = Join-Path $env:TEMP 'Smart.Switch.PC_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 '/S' -Wait