免互動安裝Deskflow、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或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