TP-LINK USB Printer Controllerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id TP-Link.USBPrinterControllerUtility -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TP-Link.USBPrinterControllerUtility -e --silentwinget uninstall --id TP-Link.USBPrinterControllerUtility -e --silentインストーラー別
32ビット · ZIP
サイレントインストール
USB_Printer_Controller_Utility_Windows.zip /S /V/quiet /V/norestartPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-tp-link-usb-printer-controller.ps1
$url = 'https://static.tp-link.com/upload/software/2022/202202/20220221/USB_Printer_Controller_Utility_Windows.zip'
$sha256 = '2134BBDE40CAA7FF8D2D176D95EF7C940452E48ADC612E0778E6E9E717C50ACE'
$file = Join-Path $env:TEMP 'USB_Printer_Controller_Utility_Windows.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 /V/quiet /V/norestart' -Wait