Documentation Monsterを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id WestWind.DocumentationMonster -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id WestWind.DocumentationMonster -e --silentwinget uninstall --id WestWind.DocumentationMonster -e --silentインストーラー別
CPU共通 · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
DocumentationMonsterSetup-0.5.5.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
DocumentationMonsterSetup-0.5.5.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\documentation-monster"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-documentation-monster.ps1
$url = 'https://raw.githubusercontent.com/RickStrahl/DocumentationMonster/refs/heads/main/Releases/v1/v0.5/DocumentationMonsterSetup-0.5.5.0.exe'
$sha256 = '56FE22783B22F62F0463E377E27B9AC5496363BB4A735DC71F86577D7B63FED6'
$file = Join-Path $env:TEMP 'DocumentationMonsterSetup-0.5.5.0.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