Dashyを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Futureglobe.Dashy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Futureglobe.Dashy -e --silentwinget uninstall --id Futureglobe.Dashy -e --silentインストーラー別
64ビット · EXE(NSIS)
サイレントインストール
DashySetup.exe /Sインストール先を指定
DashySetup.exe /S /D=C:\Apps\dashy- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\c8841a33-802f-5228-ab3f-897a561aa738
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-dashy.ps1
$url = 'https://buildserver.futureglobe.de/Dashy/DashySetup.exe'
$sha256 = 'E8956D27892C8C8B22E7189AF3383E275642C7BF3CF370B2B753E1631E4AD30E'
$file = Join-Path $env:TEMP 'DashySetup.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