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