DFexploreを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id DFNetResearch.DFexplore -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DFNetResearch.DFexplore -e --silentwinget uninstall --id DFNetResearch.DFexplore -e --silentインストーラー別
64ビット · MSI
サイレントインストール
msiexec /i DFexplore_5_11_2.msi /qn /norestartログを出力
msiexec /i DFexplore_5_11_2.msi /qn /norestart /l*v "%TEMP%\dfexplore-install.log"アンインストール
msiexec /x {6E14A4A3-2811-40A6-AFEA-B7C6BDDDDD8A} /qn /norestart- MSIプロダクトコード
- {6E14A4A3-2811-40A6-AFEA-B7C6BDDDDD8A}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6E14A4A3-2811-40A6-AFEA-B7C6BDDDDD8A}
- UpgradeCode
- {DAAC27F5-CF25-4F9C-BA1F-998B916E1625}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-dfexplore.ps1
$url = 'https://www.dfnetresearch.com/wp-content/uploads/dfdiscover/5.11.2apps/DFexplore_5_11_2.msi'
$sha256 = '542E804AB4646F4C6E0F20B1AE42F88967CA4C3C8FA06A6EC535A2D56D01A9D2'
$file = Join-Path $env:TEMP 'DFexplore_5_11_2.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