Clipsを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id azure06.clips -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id azure06.clips -e --silentwinget uninstall --id azure06.clips -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Clips-Setup-0.2.6.exe /Sインストール先を指定
Clips-Setup-0.2.6.exe /S /D=C:\Apps\clipsPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-clips.ps1
$url = 'https://github.com/azure06/clips/releases/download/v0.2.6/Clips-Setup-0.2.6.exe'
$sha256 = '1C610528680B8DECDDBB965BB9B64B61B1FBAF2444F507AB2B15ED2FFA38A5C5'
$file = Join-Path $env:TEMP 'Clips-Setup-0.2.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 '/S' -Wait