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