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