Ordres per instal·lar Dropbox Capture sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id Dropbox.Capture -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Dropbox.Capture -e --silentwinget uninstall --id Dropbox.Capture -e --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path dropboxcapture-signed.appxDesinstal·lar
Get-AppxPackage -Name dropboxcapture | Remove-AppxPackage64 bits · ZIP
No cal instal·lar-lo (portable)
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-dropbox-capture.ps1
$url = 'https://edge.dropboxstatic.com/dbx-releng/products/dropbox-capture/116.3.0/win.x86_64/dropboxcapture-signed.appx'
$sha256 = '1A7D1452349D61DEBFF68108518A79CF4E5D4B91E9AB350678AF0C172492706C'
$file = Join-Path $env:TEMP 'dropboxcapture-signed.appx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file