Has anyone here got a working script to install the latest version of Dropbox on Mac? I’ve tried a few different scripts, but each one seems to give errors and gets stuck at some point during the installation process. I’m not sure if it’s an issue with the script or with the download link. Additionally, are there specific links I need to replace in the script to ensure it installs the latest version of Dropbox?
Install latest version of Dropbox with scriptSolved
Replies (5)
Hey @jimena
A suggestion from my side, if you’re using Hexnode, you can use their Required Apps policy to install the latest version of Dropbox. This way, you won’t need to worry about updating the app, as Hexnode can check for updates every week and automatically install them if there are any.
Thanks for the suggestion, Harry. We’re currently using Hexnode for device management, but for this particular case, we’re looking to install Dropbox via a script. We prefer to handle the installation this way.
Hey @jimena, you can replace the URL with this one: https://www.dropbox.com/download?plat=mac&full=1. This URL downloads and installs the latest version of Dropbox.
Nope, while the URL works for downloading, the script is still throwing errors. Could anyone help me with the script too?
Hey @jimena ,
Thanks for reaching out. No worries, here’s a script that might help you install Dropbox:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
if [ -d "/Applications/Dropbox.app" ]; then echo "Dropbox is already installed." exit 0 fi dropbox_url="https://www.dropbox.com/download?plat=mac&full=1" download_dir="$HOME/Applications" mkdir -p "$download_dir" echo "Downloading Dropbox..." curl -L -o "$download_dir/Dropbox.dmg" "$dropbox_url" echo "Mounting the Dropbox disk image..." hdiutil attach "$download_dir/Dropbox.dmg" echo "Installing Dropbox..." cp -r "/Volumes/Dropbox Installer/Dropbox.app" "/Applications/" echo "Unmounting the Dropbox disk image..." hdiutil detach "/Volumes/Dropbox Installer" echo "Cleaning up..." rm "$download_dir/Dropbox.dmg" echo "Dropbox installation complete." exit 0 |
Please wait a moment for the script to install the app. For more information, refer to our help documentation on executing scripts on macOS devices.
Please feel free to reach us.
Cheers,
John Cooper
Hexnode UEM
-
Expand