DSH-Decktopを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id JustGenius-s.DSHDesktop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id JustGenius-s.DSHDesktop -e --silentwinget uninstall --id JustGenius-s.DSHDesktop -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
DSH-Desktop.Setup.0.2.0.exe /Sインストール先を指定
DSH-Desktop.Setup.0.2.0.exe /S /D=C:\Apps\dsh-decktop- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\239d4e5c-394e-5607-bf11-8b5229505789
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
DSH-Desktop.Setup.0.2.0.exe /Sインストール先を指定
DSH-Desktop.Setup.0.2.0.exe /S /D=C:\Apps\dsh-decktop- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\239d4e5c-394e-5607-bf11-8b5229505789
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-dsh-decktop.ps1
$url = 'https://github.com/JustGenius-s/DSH-Desktop/releases/download/v0.2.0/DSH-Desktop.Setup.0.2.0.exe'
$sha256 = 'D08A195070FBD32D0CE2282A129145E758BFE2A28A86C0FD6F2EB2B3C6BE20CA'
$file = Join-Path $env:TEMP 'DSH-Desktop.Setup.0.2.0.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 '/S' -Wait install-dsh-decktop.ps1
$url = 'https://github.com/JustGenius-s/DSH-Desktop/releases/download/v0.2.0/DSH-Desktop.Setup.0.2.0.exe'
$sha256 = 'D08A195070FBD32D0CE2282A129145E758BFE2A28A86C0FD6F2EB2B3C6BE20CA'
$file = Join-Path $env:TEMP 'DSH-Desktop.Setup.0.2.0.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 '/S' -Wait