Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

480,216

Downloads of v 2.42.213:

4,654

Last Update:

14 Dec 2024

Package Maintainer(s):

Software Author(s):

  • Box

Tags:

box sync cloud storage drive admin

Box Drive (Install)

  • 1
  • 2
  • 3

2.42.213 | Updated: 14 Dec 2024

Downloads:

480,216

Downloads of v 2.42.213:

4,654

Maintainer(s):

Software Author(s):

  • Box

Box Drive (Install) 2.42.213

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Box. The inclusion of Box trademark(s), if any, upon this webpage is solely to identify Box goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

The installer doesn't work on anything less than Windows 10 / Windows 2016. Added that to chocolateyInstall.ps1 so will error and therefore needs an exemption.

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Box Drive (Install), run the following command from the command line or from PowerShell:

>

To upgrade Box Drive (Install), run the following command from the command line or from PowerShell:

>

To uninstall Box Drive (Install), run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

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

1. Enter Your Internal Repository Url

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


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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://community.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. Copy Your Script

choco upgrade box-drive -y --source="'INTERNAL REPO 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 box-drive -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install box-drive
  win_chocolatey:
    name: box-drive
    version: '2.42.213'
    source: INTERNAL REPO URL
    state: present

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


chocolatey_package 'box-drive' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.42.213'
end

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


cChocoPackageInstaller box-drive
{
    Name     = "box-drive"
    Version  = "2.42.213"
    Source   = "INTERNAL REPO URL"
}

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


package { 'box-drive':
  ensure   => '2.42.213',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

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


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved as a trusted package on 14 Dec 2024.

Description

NOTE: Box Drive only supports Windows 10+ / Windows 2016+. If you need support for earlier operating systems try the Box Sync package

  • Keep files in sync with all your devices with automatic updates
  • Automatic version control
  • Back up files to Box directly from your desktop

NOTE: This is an automatically updated package. If you find it is out of date by more than a week, please contact the maintainer(s) and let them know the package is no longer updating correctly.


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'

$msiLogPath = ("{0}\{1}.{2}.MsiInstall.log" -f $env:TEMP, $env:chocolateyPackageName, $env:chocolateyPackageVersion)

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  fileType      = 'MSI'
  url           = 'https://e3.boxcdn.net/box-installers/desktop/releases/win32/Box-x86.msi'
  checksum      = '0813608c3b88119f3139872595daf1e1853c15a3695e513243b72092d018e03c'
  checksumType  = 'SHA256'

  url64         = 'https://e3.boxcdn.net/box-installers/desktop/releases/win/Box-x64.msi'
  checksum64    = 'B64EF777BFC15DF8E0EEDC6890E33537086D0C26EA6095E147619D1464D0C731'
  checksumType64= 'SHA256'

  softwareName  = 'box'

  silentArgs    = "/quiet /norestart /l*v `"$msiLogPath`""
  validExitCodes= @(0)
}

# Check OS
if ([version](Get-WmiObject -Class Win32_OperatingSystem).version -lt [version]"10.0") {
  Write-Error "Box Drive ONLY supports Windows 10 (or later) or Windows Server 2016 (or later). Please use the Box Sync package (https://chocolatey.org/packages/boxsync) if you need support for earlier operating systems."
}

# Box Drive is not compatible with Box Sync so check if that is installed first
if (Get-UninstallRegistryKey -SoftwareName 'box sync') {
  Write-Warning "Box Drive cannot be installed while Box Sync is installed. Please remove it before installing Box Drive."
  Write-Warning "See 'Windows Prerequisites' on the 'Installing and Updating Box Drive' page (https://community.box.com/t5/Getting-Started-with-Box-Drive/Installing-and-Updating-Box-Drive/ta-p/37450)"
  throw "Box Drive cannot be installed while Box Sync is installed."
}

# check if Box Drive is already installed
if (Get-UninstallRegistryKey -SoftwareName 'box') {
  Write-Warning "Box Drive automatically updates itself. As it is already installed we will not try to install it again as this will result in an error due to the way the installer works."
  Write-Warning "If you are trying to force install this package please uninstall and install it again."
}
else {
  Install-ChocolateyPackage @packageArgs
  Write-Verbose "Box Drive install log file is available at '$msiLogPath'"
}
tools\chocolateyUninstall.ps1
# Unfortunately the Choco auto-uninstaller does not uninstall this automatically
# so this file is needed.
$ErrorActionPreference = 'Stop'

$packageArgs = @{
    packageName    = $env:ChocolateyPackageName
    softwareName   = 'box'
    fileType       = 'MSI'
    silentArgs     = "/qn /norestart"
    validExitCodes = @(0, 3010, 1605, 1614, 1641) # https://msdn.microsoft.com/en-us/library/aa376931(v=vs.85).aspx
}

$uninstalled = $false
[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName']

if ($key.Count -eq 1) {
    $key | ForEach-Object {
        $packageArgs['file'] = "$($_.UninstallString)"
        if ($packageArgs['fileType'] -eq 'MSI') {
            $packageArgs['silentArgs'] = "$($_.PSChildName) $($packageArgs['silentArgs'])"
            $packageArgs['file'] = ''
        }

        Uninstall-ChocolateyPackage @packageArgs
    }
}
elseif ($key.Count -eq 0) {
    Write-Warning "$packageName has already been uninstalled by other means."
}
elseif ($key.Count -gt 1) {
    Write-Warning "$($key.Count) matches found!"
    Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
    Write-Warning "Please alert package maintainer the following keys were matched:"
    $key | ForEach-Object { Write-Warning "- $($_.DisplayName)" }
}

Log in or click on link to see number of positives.

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.

Add to Builder Version Downloads Last Updated Status
Box Drive (Install) 2.41.226 22419 Tuesday, October 29, 2024 Approved
Box Drive (Install) 2.40.333 31361 Friday, August 23, 2024 Approved
Box Drive (Install) 2.39.174 30218 Tuesday, July 2, 2024 Approved
Box Drive (Install) 2.38.173 34284 Saturday, April 27, 2024 Approved
Box Drive (Install) 2.37.142 30772 Friday, January 19, 2024 Approved
Box Drive (Install) 2.36.107 20734 Friday, November 10, 2023 Approved
Box Drive (Install) 2.35.97 18422 Friday, September 22, 2023 Approved
Box Drive (Install) 2.34.84 15683 Saturday, August 5, 2023 Approved
Box Drive (Install) 2.33.130 3033 Friday, July 28, 2023 Approved
Box Drive (Install) 2.30.87 25458 Friday, February 3, 2023 Approved
Box Drive (Install) 2.29.112 5906 Wednesday, December 14, 2022 Approved
Box Drive (Install) 2.28.292 6931 Friday, October 28, 2022 Approved
Box Drive (Install) 2.27.242 5783 Wednesday, September 7, 2022 Approved
Box Drive (Install) 2.26.348 50701 Thursday, May 5, 2022 Approved
Box Drive (Install) 2.26.330 10258 Wednesday, April 13, 2022 Approved
Box Drive (Install) 2.25.306 23875 Saturday, February 12, 2022 Approved
Box Drive (Install) 2.24.208 17953 Tuesday, December 14, 2021 Approved
Box Drive (Install) 2.24.198 13676 Saturday, November 6, 2021 Approved
Box Drive (Install) 2.24.193 8835 Saturday, October 9, 2021 Approved
Box Drive (Install) 2.23.428 6483 Tuesday, September 21, 2021 Approved
Box Drive (Install) 2.23.422 7329 Wednesday, September 1, 2021 Approved
Box Drive (Install) 2.22.445 19408 Wednesday, June 30, 2021 Approved
Box Drive (Install) 2.21.202 13927 Tuesday, May 4, 2021 Approved
Box Drive (Install) 2.20.136 17061 Wednesday, January 27, 2021 Approved
Box Drive (Install) 2.19.294 1239 Friday, January 8, 2021 Approved
Box Drive (Install) 2.18.117 2861 Tuesday, October 27, 2020 Approved
Box Drive (Install) 2.17.176 1971 Friday, September 4, 2020 Approved
Box Drive (Install) 2.16.298 1441 Friday, July 24, 2020 Approved
Box Drive (Install) 2.15.121 929 Tuesday, June 23, 2020 Approved
Box Drive (Install) 2.14.378 1053 Wednesday, May 20, 2020 Approved
Box Drive (Install) 2.14.377 565 Friday, May 8, 2020 Approved
Box Drive (Install) 2.13.518 666 Wednesday, April 15, 2020 Approved
Box Drive (Install) 2.12.604 20357 Tuesday, March 31, 2020 Approved
Box Drive (Install) 2.11.46 1208 Thursday, January 23, 2020 Approved
Box Drive (Install) 2.10.219 821 Wednesday, October 30, 2019 Approved
Box Drive (Install) 2.9.369 405 Wednesday, September 25, 2019 Approved
Box Drive (Install) 2.8.207 379 Tuesday, August 20, 2019 Approved
Box Drive (Install) 2.7.242 324 Friday, June 28, 2019 Approved
Box Drive (Install) 2.7.241 259 Friday, June 21, 2019 Approved
Box Drive (Install) 2.6.186 327 Wednesday, May 15, 2019 Approved
Box Drive (Install) 2.5.127 247 Sunday, April 14, 2019 Approved

Discussion for the Box Drive (Install) Package

Ground Rules:

  • This discussion is only about Box Drive (Install) and the Box Drive (Install) 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 Box Drive (Install), 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