Benthic Software: PLEdit 7.xを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BenthicSoftware.PLEdit.7 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BenthicSoftware.PLEdit.7 -e --silentwinget uninstall --id BenthicSoftware.PLEdit.7 -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
pledit7setup750_64bit.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
pledit7setup750_64bit.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\benthic-software-pledit-7-x"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PLEdit764_is1
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
pledit7setup750_32bit.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
pledit7setup750_32bit.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\benthic-software-pledit-7-x"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\PLEdit732_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-benthic-software-pledit-7-x.ps1
$url = 'https://www.benthicsoftware.com/apps/pledit7setup750_64bit.exe'
$sha256 = '67FE722A048CC09BF583A30D27167BA2221CD991DBE364F22E4539C45EEB17D1'
$file = Join-Path $env:TEMP 'pledit7setup750_64bit.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 install-benthic-software-pledit-7-x.ps1
$url = 'https://www.benthicsoftware.com/apps/pledit7setup750_32bit.exe'
$sha256 = '4DD973A88AFFE69632B7110B399F413D21380E11A842E262CEC755EF5D767517'
$file = Join-Path $env:TEMP 'pledit7setup750_32bit.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