I have run into some that Fail to run the script successfully though.
I thought if people need the old Reader, they can get it from Self Service.
Yeah, Adobe Acrobat Reader DC is just a gem of a name isn't it? Anyway, Reader DC installs a new application, because, well, its a new application. You can have both installed at the same time, though I can't imagine any reason to do that. If you really want to have it remove the older application, that's certainly doable.
Newbie here, where do I find the actual Adobe Reader 11.0..09 update?
When I try to download it on my test machine, it just automatically installs through Safari.
latestver=`` while [ -z "$latestver" ] do latestver=`/usr/bin/curl -s -L -A "$user Agent" https://get.adobe.com/reader/ | grep "Version" | /usr/bin/sed -e 's///g' | /usr/bin/awk '' | cut -c 3-14` done echo "Latest Version is: $latestver" latestvernorm=`echo $` # Get the version number of the currently-installed Adobe Reader, if any.
Exiting" exit 0 fi else currentinstalledver="none" echo "Adobe Reader DC is not installed" fi ARCurr Vers Normalized=$( echo $latestver | sed -e 's/[.]//g' ) echo "ARCurr Vers Normalized: $ARCurr Vers Normalized" url1=" DC/$/Acro Rdr DC_$_MUI.dmg" url2="" #Build URL url=`echo "$$"` echo "Latest version of the URL is: $url" # Compare the two versions, if they are different or Adobe Reader is not present then download and install the new version. = "$" ]; then /bin/echo "`date`: Current Reader DC version: $" $ #/usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep Adobe\ Acrobat\ Reader\ DC\ Installer | awk '') -quiet /sbin/umount "/Volumes/Acro Rdr DC_$_MUI" /bin/sleep 10 /bin/echo "`date`: Deleting disk image." $ /bin/rm /tmp/$ #double check to see if the new version got updated newlyinstalledver=`/usr/bin/defaults read /Applications/Adobe\ Acrobat\ Reader\ DC.app/Contents/Info CFBundle Short Version String` if [ "$" = "$" ]; then /bin/echo "`date`: SUCCESS: Adobe Reader has been updated to version $" $ # /Library/Application\ Support/JAMF/bin/jamf Helper.app/Contents/Mac OS/jamf Helper -window Type hud -title "Adobe Reader Updated" -description "Adobe Reader has been updated." & else /bin/echo "`date`: ERROR: Adobe Reader update unsuccessful, version remains at $." Sorry about that.
Running script Application_Adobe DC-Update Reader... Script exit code: 1 Script result: Latest Version is: 2015.009.20069 Current installed version is: 15.009.20077 ARCurr Vers Normalized: 1500920069 Latest version of the URL is: DC/1500920069/Acro Rdr DC_1500920069_MUI.dmg# Script to download and install Adobe Reader. dmgfile="Acro Rdr DC_$_MUI.dmg" logfile="/Library/Logs/Adobe Reader DCUpdate Script.log" # Are we running on Intel?
if [ '`/usr/bin/uname -p`'="i386" -o '`/usr/bin/uname -p`'="x86_64" ]; then ## Get OS version and adjust for use with the URL string OSvers_URL=$( sw_vers -product Version | sed 's/[.]/_/g' ) ## Set the User Agent string for use with curl user Agent="Mozilla/5.0 (Macintosh; Intel Mac OS X $) Apple Web Kit/535.6.2 (KHTML, like Gecko) Version/5.2 Safari/535.6.2" # Get the latest version of Reader available from Adobe's About Reader page.
Something like rm -rf /applications/Adobe\ Reader.appdefaults write com.apple.
Launch Services LSHandlers -array-add '' The default handler update not be needed, because the DC version uses the same identifier as the non-DC version, not sure if deleting an app will revert this to the Preview app or not.
I haven't had the chance to contribute yet to the original creator. I'm not sure there is any work around for Adobe screw ups. Just want to chime in to say I have seen the same issue with one of my own scripts that updates Reader DC.