Downloads:

710,010

Downloads of v 3.8.6:

1,953

Last Update:

8/5/2015

Package Maintainer(s):

Software Author(s):

  • Dropbox

Tags:

dropbox virtual files file admin

Dropbox

This is not the latest version of Dropbox available.

3.8.6 | Updated: 8/5/2015

Downloads:

710,010

Downloads of v 3.8.6:

1,953

Software Author(s):

  • Dropbox

Dropbox 3.8.6

This is not the latest version of Dropbox available.

All Checks are Unknown

2 Test of Unknown Status


Validation Testing Unknown


Verification Testing Unknown

To install Dropbox, run the following command from the command line or from PowerShell:

>

To upgrade Dropbox, run the following command from the command line or from PowerShell:

>

To uninstall Dropbox, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade dropbox -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade dropbox -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure dropbox installed
  win_chocolatey:
    name: dropbox
    state: present
    version: 3.8.6
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'dropbox' do
  action    :install
  version  '3.8.6'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: dropbox,
    Version: 3.8.6,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller dropbox
{
   Name     = 'dropbox'
   Ensure   = 'Present'
   Version  = '3.8.6'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'dropbox':
  provider => 'chocolatey',
  ensure   => '3.8.6',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install dropbox version="3.8.6" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 8/5/2015.

Description

Dropbox is a free service that lets you bring all your photos, docs, and videos anywhere. This means that any file you save to your Dropbox will automatically save to all your computers, phones and even the Dropbox website. Dropbox also makes it super easy to share with others, whether you're a student or professional, parent or grandparent. Even if you accidentally spill a latte on your laptop, have no fear! You can relax knowing that Dropbox always has you covered, and none of your stuff will ever be lost.

Notes

Even though the official installer for Dropbox asserts administrator rights, it installs Dropbox only for the currently logged user (path: %APPDATA%\Dropbox).

If the official Dropbox installer would be started with administrative rights, the installation would not be unattended.

To prevent this problem, this package uses an AutoHotkey-script (thus the autohotkey.portable dependency) to close a non-unattended dialog box opened by the Dropbox installer during installation.

The confusing dialog box with the content “Dropbox will not work correctly if installed using the ‘Run as Administrator’ command. …” can be ignored. Always select “Yes” if this dialog box appears. Regardless of this message, Dropbox will work correctly.


tools\chocolateyInstall.ps1
$PSScriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Definition
Import-Module (Join-Path $PSScriptRoot 'functions.ps1')

$packageName = 'dropbox'
$version = '3.8.6'

$filePath = "$env:TEMP\chocolatey\$packageName"
$fileFullPath = "$filePath\${packageName}Install.exe"
$url = 'https://dl-web.dropbox.com/u/17/Dropbox 3.8.6.exe'

$fileType = 'exe'
$silentArgs = '/S'

# Variables for the AutoHotkey-script
$scriptPath = Split-Path -parent $MyInvocation.MyCommand.Definition
$ahkFile = "$scriptPath\dropbox.ahk"

try {

  $installedVersion = (getDropboxRegProps).DisplayVersion

  if ($installedVersion -eq $version) {
    Write-Host "Dropbox $version is already installed."
  } else {

    # Download and install Dropbox

    if (-not (Test-Path $filePath)) {
      New-Item $filePath -type directory
    }

    Get-ChocolateyWebFile $packageName $fileFullPath $url
    Start-Process 'AutoHotkey' $ahkFile
    Start-Process $fileFullPath $silentArgs
    Wait-Process -Name "dropboxInstall"
    Remove-Item $fileFullPath
  }

  Write-ChocolateySuccess $packageName

} catch {

  Write-ChocolateyFailure $packageName $($_.Exception.Message)
  throw
}

tools\chocolateyUninstall.ps1
$PSScriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Definition
Import-Module (Join-Path $PSScriptRoot 'functions.ps1')

try {

  $packageName = 'dropbox'
  $fileType = 'exe'
  $silentArgs = '/S'
  $uninstallerPath = (getDropboxRegProps).UninstallString

  if ($uninstallerPath) {
    Uninstall-ChocolateyPackage $packageName $fileType $silentArgs $uninstallerPath
  }

} catch {
  Write-ChocolateyFailure $packageName $($_.Exception.Message)
  throw
}

tools\dropbox.ahk
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; A window's title can contain WinTitle anywhere inside it to be a match.
SetTitleMatchMode, 2

WinWait, Dropbox ahk_class #32770, , 60
Sleep, 2000
WinActivate
IfWinActive
	ControlClick, Button1
tools\functions.ps1
Function getDropboxRegProps() {
  $uninstallRegistryPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox'

  if (Test-Path $uninstallRegistryPath) {
    $props = @{
      "DisplayVersion" = (Get-ItemProperty $uninstallRegistryPath).DisplayVersion
      "UninstallString" = (Get-ItemProperty $uninstallRegistryPath).UninstallString
    }
  }

  return $props
}

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Dropbox 86.3.130-beta 33 Saturday, November 16, 2019 Approved
Dropbox 86.3.127-beta 12 Friday, November 15, 2019 Approved
Dropbox 85.3.147-beta 21 Tuesday, November 12, 2019 Approved
Dropbox 85.3.138 8586 Monday, November 4, 2019 Approved
Dropbox 85.3.138-beta 21 Saturday, November 2, 2019 Approved
Dropbox 85.3.133-beta 21 Wednesday, October 30, 2019 Approved
Dropbox 84.4.170 4614 Thursday, October 31, 2019 Approved
Dropbox 84.3.160-beta 35 Friday, October 25, 2019 Approved
Discussion for the Dropbox Package

Ground Rules:

  • This discussion is only about Dropbox and the Dropbox package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Dropbox, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus