PE Explorerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Heaventools.PEexplorer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Heaventools.PEexplorer -e --silentwinget uninstall --id Heaventools.PEexplorer -e --silentインストーラー別
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
pexsetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
pexsetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pe-explorer"32ビット · MSI
サイレントインストール
msiexec /i pexsetup.msi /qn /norestartログを出力
msiexec /i pexsetup.msi /qn /norestart /l*v "%TEMP%\pe-explorer-install.log"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-pe-explorer.ps1
$url = 'https://www.heaventools.com/download/pexsetup.exe'
$sha256 = 'C6424DF1E0DEC4D1361F231DCA9E4385CFA1863DFFF673A5C73FA741A447808F'
$file = Join-Path $env:TEMP 'pexsetup.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-pe-explorer.ps1
$url = 'https://www.heaventools.com/download/pexsetup.msi'
$sha256 = '5075576E6D53BD00EF288D853197E490C1010A11594DF83EAF2E28FF4165794A'
$file = Join-Path $env:TEMP 'pexsetup.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait