jdDesktopEntryEditを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id JakobDev.jdDesktopEntryEdit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id JakobDev.jdDesktopEntryEdit -e --silentwinget uninstall --id JakobDev.jdDesktopEntryEdit -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー · en-US
サイレントインストール
download /Sインストール先を指定
download /S /D=C:\Apps\jddesktopentryedit- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\jdDesktopEntryEdit
64ビット · EXE(NSIS) · すべてのユーザー · en-US
サイレントインストール
download /Sインストール先を指定
download /S /D=C:\Apps\jddesktopentryedit- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\jdDesktopEntryEdit
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-jddesktopentryedit.ps1
$url = 'https://sourceforge.net/projects/jddesktopentryedit/files/1.8/jdDesktopEntryEdit-1.8-WindowsInstaller.exe/download'
$sha256 = '9237C5C314302376B2AE4D22F19B4ABCBC91CA44EC3F1003B62D7E8C3A8978A5'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-jddesktopentryedit.ps1
$url = 'https://sourceforge.net/projects/jddesktopentryedit/files/1.8/jdDesktopEntryEdit-1.8-WindowsInstaller.exe/download'
$sha256 = '9237C5C314302376B2AE4D22F19B4ABCBC91CA44EC3F1003B62D7E8C3A8978A5'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait