Deskflowを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Deskflow.Deskflow -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Deskflow.Deskflow -e --silentwinget uninstall --id Deskflow.Deskflow -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i deskflow-1.27.0-win-x64.msi /qn /norestartログを出力
msiexec /i deskflow-1.27.0-win-x64.msi /qn /norestart /l*v "%TEMP%\deskflow-install.log"アンインストール
msiexec /x {9E3B2247-66B4-47B2-8C65-986CC86ADEA6} /qn /norestart- MSIプロダクトコード
- {9E3B2247-66B4-47B2-8C65-986CC86ADEA6}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9E3B2247-66B4-47B2-8C65-986CC86ADEA6}
- UpgradeCode
- {027D1C8A-E7A5-4754-BB93-B2D45BFDBDC8}
- インストール先フォルダー
- %ProgramFiles%/./Deskflow
ARM64 · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i deskflow-1.27.0-win-arm64.msi /qn /norestartログを出力
msiexec /i deskflow-1.27.0-win-arm64.msi /qn /norestart /l*v "%TEMP%\deskflow-install.log"アンインストール
msiexec /x {C281A69C-6199-4478-B22A-F3A2EE6796D2} /qn /norestart- MSIプロダクトコード
- {C281A69C-6199-4478-B22A-F3A2EE6796D2}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C281A69C-6199-4478-B22A-F3A2EE6796D2}
- UpgradeCode
- {027D1C8A-E7A5-4754-BB93-B2D45BFDBDC8}
- インストール先フォルダー
- %ProgramFiles%/./Deskflow
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-deskflow.ps1
$url = 'https://github.com/deskflow/deskflow/releases/download/v1.27.0/deskflow-1.27.0-win-x64.msi'
$sha256 = '0CA5668C4731F5477D0B189BDB11196A2CA51281985D9D8C0757BF7F3B782D64'
$file = Join-Path $env:TEMP 'deskflow-1.27.0-win-x64.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 install-deskflow.ps1
$url = 'https://github.com/deskflow/deskflow/releases/download/v1.27.0/deskflow-1.27.0-win-arm64.msi'
$sha256 = '7A8632193D8FB4814BD93526995B209AFBBB9F293468CFC50CA1BDDAA3CB752B'
$file = Join-Path $env:TEMP 'deskflow-1.27.0-win-arm64.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