免互動安裝pCloud Drive、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id pCloudAG.pCloudDrive -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id pCloudAG.pCloudDrive -e --silentwinget uninstall --id pCloudAG.pCloudDrive -e --silent依安裝檔
64位元 · EXE(WiX Burn)
靜默安裝
win64 /quiet /norestart32位元 · EXE(WiX Burn)
靜默安裝
win /quiet /norestartPowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-pcloud-drive.ps1
$url = 'https://partner.pcloud.com/dl/win64'
$sha256 = '787A8B9B0926108B1365D60C58D09D626CBC1C573305637E1EC47F86181F57FF'
$file = Join-Path $env:TEMP 'win64'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait install-pcloud-drive.ps1
$url = 'https://partner.pcloud.com/dl/win'
$sha256 = '73D3977432A771C9B60EFED6E8E972BAB2A2898DD9ADEF970B24CDA341A1C0BD'
$file = Join-Path $env:TEMP 'win'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait