

- #INSTALL DROPBOX FOR MAC FOR FREE#
- #INSTALL DROPBOX FOR MAC UPDATE#
- #INSTALL DROPBOX FOR MAC OFFLINE#
- #INSTALL DROPBOX FOR MAC DOWNLOAD#
#INSTALL DROPBOX FOR MAC FOR FREE#
Ideally, 2 GB of space is available for free on Dropbox for every user. Since it supports a wide range of platforms like iOS, Android, Windows, Mac, and so on, it lets us sync our data across different platforms as well. In a nutshell, Dropbox is a cloud-based service that is used for file storing, synchronization, and numerous other purposes. The application /Applications/Dropbox.app cannot be opened for an unexpected reason, error=Error Domain=NSCocoaErrorDomain Code=260 "The file “Dropbox.app” couldn’t be opened because there is no such file. Hdiutil: detach failed - No such file or directory

INFO - Changing to other directory than installer to prevent unmount to fail INFO - Application copied to local Applications folder
#INSTALL DROPBOX FOR MAC OFFLINE#
Proceeding with install/update.Ĭp: /Volumes/Dropbox Offline Installer/Dropbox.app: No such file or directory INFO - Checking if application is installed Hdiutil: attach failed - image not recognized When i try and run the above script i get these errors: Installation will begin!"Ĭurl -A "$UserAgent" -L "$DownloadURL" > "$MountPath"
#INSTALL DROPBOX FOR MAC UPDATE#
No update needed!"Įcho "INFO - Appication not installed. Update will begin!"Įcho "INFO - Current version same or higher than latest stable version. # Copy application from mounted DMG to local Applications folderĮcho "INFO - Latest version newer than current version. # If current version is lower than latest version run function "CheckRunning" else end script successfull If thenĮcho "INFO - Application installed, checking versions."ĭropboxCurrentVersion=$(defaults read "/Applications/Dropbox.app/Contents/ist" CFBundleShortVersionString | sed -e 's/.//g')Įcho "INFO - Current version is: $DropboxCurrentVersion"ĭropboxLatestVersion=$(defaults read "/Volumes/Dropbox Offline Installer/Dropbox.app/Contents/ist" CFBundleShortVersionString | sed -e 's/.//g')Įcho "INFO - Latest version is: $DropboxLatestVersion" # Function to check if application is installed # If Dropbox kill successfull function "CopyApp" will run else script will stop with errorĮcho "INFO - Application kill confirmed!"Įcho "ERROR - Could not kill application"Įcho "INFO - Application is not running. # If Dropbox is running kill its processesĮcho "INFO - Application is currently running, trying to kill application processes" # Function to check if application is running # Function to copy application from mounted DMG to local Applications folderĬopy=$(cp -R "/Volumes/Dropbox Offline Installer/Dropbox.app" "/Applications/Dropbox.app")Įcho "INFO - Application copied to local Applications folder"Įcho "ERROR- Could not copy files from mounted DMG to local Applications folder" MountPath="/var/tmp/DropBox Installer.dmg"
#INSTALL DROPBOX FOR MAC DOWNLOAD#
# - v1.2 Martin Kretz, : Added StableVersion variable to populate the new download URLĬurrentUser=$(scutil ]*>//g' | sed 's/^ *//g') Try it and come back to me if there are any issues. It should work on both Intel and M1 processors. I've changed the script to make it work, how I get the latest stable version number is not pretty but it works. Hi and checked the script again and the reason that it doesn't work is because of how Dropbox publishes the dmg, the URL has changed. Hdiutil detach /Volumes/Dropbox Offline Installer/ -force

# Change to other directory than installer to prevent unmount to failĮcho "INFO - Changing to other directory than installer to prevent unmount to fail" # Check if application is already installedĮcho "INFO - Checking if application is installed" # - v1.1 Martin Kretz, : Changed download URL, unmount behavior and added functions and checks # Description: Installs or updates Dropbox The script works as an Dropbox updater too (if the built in updater doesn't work)! #!/bin/bash I changed download URL, unmount behavior and added functions and checks I tried the script too and it didn't work.
