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