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