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