Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

This is not the latest version of Dropbox available.

Dropbox

3.6.9

There are no package test results for this package

This package was approved as a trusted package on 7/12/2015.

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.

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

C:\> choco install dropbox --version 3.6.9

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

C:\> choco upgrade dropbox --version 3.6.9

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $PSScriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Definition
    Import-Module (Join-Path $PSScriptRoot 'functions.ps1')
    
    $packageName = 'dropbox'
    $version = '3.6.9'
    
    $filePath = "$env:TEMP\chocolatey\$packageName"
    $fileFullPath = "$filePath\${packageName}Install.exe"
    $url = 'https://dl-web.dropbox.com/u/17/Dropbox 3.6.9.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 Show
    $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 Show
    #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 Show
    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
    }
    

Virus Scan Results

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.

Dependencies

Package Maintainer(s)

Software Author(s)

  • Dropbox

Tags

Version History

Version Downloads Last updated Status
Dropbox 55.3.168-beta 24 Tuesday, August 7, 2018 approved
Dropbox 55.3.167-beta 27 Tuesday, July 31, 2018 approved
Dropbox 54.3.86 1695 Monday, July 30, 2018 approved
Dropbox 54.3.86-beta 41 Friday, July 13, 2018 approved
Dropbox 54.3.85-beta 29 Wednesday, July 11, 2018 approved
Dropbox 53.4.67 5813 Friday, July 13, 2018 approved
Dropbox 53.4.66 2194 Wednesday, July 11, 2018 approved
Dropbox 53.3.65-beta 42 Monday, June 25, 2018 approved
Dropbox 53.3.64-beta 36 Tuesday, June 19, 2018 approved
Show More

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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok