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