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