CLC Server Command Line Toolsを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id QIAGEN.CLCServerCommandLineTools -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id QIAGEN.CLCServerCommandLineTools -e --silentwinget uninstall --id QIAGEN.CLCServerCommandLineTools -e --silentインストーラー別
64ビット · EXE · すべてのユーザー
サイレントインストール
CLCServerCommandLineTools_26_0_6.exe -q -Dinstall4j.suppressUnattendedReboot=true- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\0803-8719-3724-8959
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-clc-server-command-line-tools.ps1
$url = 'https://download.clcbio.com/CLCServerCommandLineTools/26.0.6/CLCServerCommandLineTools_26_0_6.exe'
$sha256 = '60FB47A1AB266DDCD65245D578A0BADF05B3AF49FF4BE643E8BE7F3FB8AE869D'
$file = Join-Path $env:TEMP 'CLCServerCommandLineTools_26_0_6.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 '-q -Dinstall4j.suppressUnattendedReboot=true' -Wait