Skip to content

Instantly share code, notes, and snippets.

@torrottum
Created February 11, 2014 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torrottum/8943986 to your computer and use it in GitHub Desktop.
Save torrottum/8943986 to your computer and use it in GitHub Desktop.
EOS Utility installer for OS X since Canon only allows to update exisiting installs

What is this?

Canon only let's you download updates for already installed EOS Utility, which you need to install from a CD.

But it's pretty easy to install it without doing so, it's as simple as deleting a file as shown in many videos and guides online

This script only automates this process.

Usage

Just run ./EOSUtilityInstaller.sh path-to-eos-utility.dmg

For example: ./EOSUtilityInstaller.sh eu2.13.40x-updater.dmg

#!/bin/bash
set -o pipefail
if [[ -z $1 ]]; then
echo "Missing EOS Updater Utility dmg argument";
echo "Usage: "
echo "$0 path-to-eos-utility.dmg"
echo "For example: "
echo "./EOSUtilityInstaller.sh eu2.13.40x-updater.dmg"
exit 1;
fi
echo "Mounting EOS Utility DMG file..."
DMG_MOUNTED_PATH=$(hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom /tmp $1 | grep -A 1 mount-point | tail -n 1 | awk -F '[<>]' '/string/{print $3}' -)
if [ $? -eq 0 ]
then
echo "Sucess!"
echo "Creating temporary folder"
TEMP_DIR=$(mktemp -dt eos)
cp -r $DMG_MOUNTED_PATH/*.app $TEMP_DIR
hdiutil detach $DMG_MOUNTED_PATH > /dev/null
rm -f $TEMP_DIR/*.app/Contents/Resources/Info.datx
echo "Deleting Info.datx file"
echo "Opening up installer, it should work. Enjoy!"
open $TEMP_DIR/*.app
else
echo ""
echo "Mounting failed, please check output for errors"
fi
set +o pipefail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment