免互動安裝PDQ Deploy、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id PDQ.PDQDeploy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PDQ.PDQDeploy -e --silentwinget uninstall --id PDQ.PDQDeploy -e --silent依安裝檔
64位元 · EXE · 所有使用者
靜默安裝
Deploy_20.1.28.0.exe /s解除安裝
msiexec /x {E75221EE-4258-4E87-BF82-7E094A73F42D} /qn /norestart- MSI產品代碼
- {E75221EE-4258-4E87-BF82-7E094A73F42D}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E75221EE-4258-4E87-BF82-7E094A73F42D}
- UpgradeCode
- {6506AFD1-C396-4C93-A3EC-62EAE6EF8889}
32位元 · EXE · 所有使用者
靜默安裝
Deploy_20.1.28.0.exe /s解除安裝
msiexec /x {E75221EE-4258-4E87-BF82-7E094A73F42D} /qn /norestart- MSI產品代碼
- {E75221EE-4258-4E87-BF82-7E094A73F42D}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{E75221EE-4258-4E87-BF82-7E094A73F42D}
- UpgradeCode
- {6506AFD1-C396-4C93-A3EC-62EAE6EF8889}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-pdq-deploy.ps1
$url = 'https://services.pdq.com/download/deploy-inventory/Deploy_20.1.28.0.exe'
$sha256 = '6AF2F49671669FB55D4CEB6B8395A2578594155F8D694F8550FDC83E271512D7'
$file = Join-Path $env:TEMP 'Deploy_20.1.28.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-pdq-deploy.ps1
$url = 'https://services.pdq.com/download/deploy-inventory/Deploy_20.1.28.0.exe'
$sha256 = '6AF2F49671669FB55D4CEB6B8395A2578594155F8D694F8550FDC83E271512D7'
$file = Join-Path $env:TEMP 'Deploy_20.1.28.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