免互動安裝Dropbox、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Dropbox.Dropbox -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Dropbox.Dropbox -e --silentwinget uninstall --id Dropbox.Dropbox -e --silent依安裝檔
64位元 · EXE · 所有使用者
開發商沒有公布這個安裝檔的靜默安裝參數。64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i "Dropbox 270.4.3312 Enterprise Installer.x64.msi" /qn /norestart寫入記錄檔
msiexec /i "Dropbox 270.4.3312 Enterprise Installer.x64.msi" /qn /norestart /l*v "%TEMP%\dropbox-install.log"解除安裝
msiexec /x {F9A3AD3E-F717-5AE3-8412-B22FDB590A3F} /qn /norestart- MSI產品代碼
- {F9A3AD3E-F717-5AE3-8412-B22FDB590A3F}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F9A3AD3E-F717-5AE3-8412-B22FDB590A3F}
- UpgradeCode
- {CC46080E-4C33-4981-859A-BBA2F780F31E}
- DisplayVersion
- 16.228.3312
ARM64 · EXE · 所有使用者
開發商沒有公布這個安裝檔的靜默安裝參數。ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i "Dropbox 270.4.3312 Enterprise Installer.arm64.msi" /qn /norestart寫入記錄檔
msiexec /i "Dropbox 270.4.3312 Enterprise Installer.arm64.msi" /qn /norestart /l*v "%TEMP%\dropbox-install.log"解除安裝
msiexec /x {F9A3AD3E-F717-5AE3-8412-B22FDB590A3F} /qn /norestart- MSI產品代碼
- {F9A3AD3E-F717-5AE3-8412-B22FDB590A3F}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F9A3AD3E-F717-5AE3-8412-B22FDB590A3F}
- UpgradeCode
- {CC46080E-4C33-4981-859A-BBA2F780F31E}
- DisplayVersion
- 16.228.3312
32位元 · EXE · 所有使用者
開發商沒有公布這個安裝檔的靜默安裝參數。32位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i "Dropbox 270.4.3312 Enterprise Installer.x86.msi" /qn /norestart寫入記錄檔
msiexec /i "Dropbox 270.4.3312 Enterprise Installer.x86.msi" /qn /norestart /l*v "%TEMP%\dropbox-install.log"解除安裝
msiexec /x {F9A3AD3E-F717-5AE3-8412-B22FDB590A3F} /qn /norestart- MSI產品代碼
- {F9A3AD3E-F717-5AE3-8412-B22FDB590A3F}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F9A3AD3E-F717-5AE3-8412-B22FDB590A3F}
- UpgradeCode
- {CC46080E-4C33-4981-859A-BBA2F780F31E}
- DisplayVersion
- 16.228.3312
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-dropbox.ps1
$url = 'https://edge.dropboxstatic.com/dbx-releng/client/Dropbox%20270.4.3312%20Enterprise%20Installer.x64.msi'
$sha256 = '3ABFD6ED8A522BF9B11C8D867C74BDF3EF8A5C247224EB87D004BB5B06C0DFAB'
$file = Join-Path $env:TEMP 'Dropbox 270.4.3312 Enterprise Installer.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-dropbox.ps1
$url = 'https://edge.dropboxstatic.com/dbx-releng/client/Dropbox%20270.4.3312%20Enterprise%20Installer.arm64.msi'
$sha256 = '3D32AB642F9E871F6D06DFCBF30BB4997762C892FA1740ADF2FD5F6889E3A0D2'
$file = Join-Path $env:TEMP 'Dropbox 270.4.3312 Enterprise Installer.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 install-dropbox.ps1
$url = 'https://edge.dropboxstatic.com/dbx-releng/client/Dropbox%20270.4.3312%20Enterprise%20Installer.x86.msi'
$sha256 = 'BCB92541D4F3F988C8F8DC3F8428438060D496F733701693906DD615575A180D'
$file = Join-Path $env:TEMP 'Dropbox 270.4.3312 Enterprise Installer.x86.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