OpenBoardを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id OpenEducationFoundation.OpenBoard -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenEducationFoundation.OpenBoard -e --silentwinget uninstall --id OpenEducationFoundation.OpenBoard -e --silentインストーラー別
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
OpenBoard_Installer_1.7.7.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
OpenBoard_Installer_1.7.7.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\openboard"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{8CCA6AC7-BBF9-4DD2-8E70-A907E0FCA38F}}_is1
- インストール先フォルダー
- %ProgramFiles%\OpenBoard
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-openboard.ps1
$url = 'https://github.com/OpenBoard-org/OpenBoard/releases/download/v1.7.7/OpenBoard_Installer_1.7.7.exe'
$sha256 = '0B3E703F5D2971CA2CE68BF7203428D74426D4EB7C1447C728F590B4EFAAFAC9'
$file = Join-Path $env:TEMP 'OpenBoard_Installer_1.7.7.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait