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