S5FCを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Thorlabs.S5FC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Thorlabs.S5FC -e --silentwinget uninstall --id Thorlabs.S5FC -e --silentインストーラー別
32ビット · ZIP · すべてのユーザー
サイレントインストール
s5fc_v120.zip /S- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\S5FC
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-s5fc.ps1
$url = 'https://thin01mstroc282prod.dxcloud.episerver.net/contentassets/0746bd23e4f34e979e29a2ce5f6e57da/s5fc_v120.zip'
$sha256 = 'B2D37BD901B7C66626718807E2290A7590CBE16459C65DC2BE0F9891A3099915'
$file = Join-Path $env:TEMP 's5fc_v120.zip'
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