/build/static/layout/Breadcrumb_cap_w.png

Installing Acrobat Reader 11 or Reader DC for MAC OS via K1000

We are trying to setup the K1000 to deploy MAC software for the first time.  We are now successful in doing so.  We are having issues with getting Acrobat Reader 11 or Reader DC to deploy.  We have tried the tools provided by Adobe to customize the install for MAC.  We cannot even get past the first step as we get "Invalid Package" messages with DC and for version 11 it is forcing us to use a Serial key.  There is no key for Reader.

Has anyone else been successful with this?  How did you get Acrobat Reader 11 (or Reader DC) to install?

This has been a difficult package.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: taylor-madeak 8 years ago
Yellow Belt
0
Here is the shell script that I wrote to deal with this issue in both K2000 imaging and K1000 on-demand scripts.  It will automatically grab the latest version of Adobe Reader from the internet, verify its signature, install it, and spit out a log file in /var/logs:

#!/bin/bash
touch /var/log/adobe_reader_install.log
exec 1>/var/log/adobe_reader_install.log 2>&1

getNewestDir () {
tarray="$@"
delete=(misc)
list=( "${tarray[@]/$delete}" )
array=( $(for each in ${list[@]}; do echo $each; done | sort -rn ) )
echo ${array[0]}
}

getInstaller () {
installers="$@"
for ST in $installers ; do
if [[ $ST =~ (^AcroRdrDC_+) ]] ; then
echo $ST
fi
done
}

ftpURL="ftp://ftp.adobe.com/pub/adobe/reader/mac/AcrobatDC/"
dirList=$(/usr/bin/curl -l $ftpURL)
acrDir=$(getNewestDir ${dirList[@]})
pkgList=$(/usr/bin/curl -l "$ftpURL$acrDir/")
acrInst=$(getInstaller $pkgList)
fileURL="$ftpURL$acrDir/$acrInst"

AcrRdr_dmg="acroRead.dmg"

/usr/bin/curl --output "$AcrRdr_dmg" "$fileURL"

TMPMOUNT=$(/usr/bin/mktemp -d /tmp/acroRead.XXXX)

hdiutil attach "$AcrRdr_dmg" -mountpoint "$TMPMOUNT" -nobrowse -noverify -noautoopen

pkg_path="$(/usr/bin/find $TMPMOUNT -maxdepth 1 \( -iname \*AcroRdr*\.pkg -o -iname \*AcroRdr*\.mpkg \))"

if [[ ${pkg_path} != "" ]]
then
signature_check=$(/usr/sbin/pkgutil --check-signature "$pkg_path" | awk /'Developer ID Installer/{ print $5 }')
if [[ ${signature_check} = "Adobe" ]]
then
/usr/sbin/installer -dumplog -verbose -pkg "${pkg_path}" -target "/"
fi
fi

/usr/bin/hdiutil detach "$TMPMOUNT"
/bin/rm -rf "$TMPMOUNT"
/bin/rm -rf "$AcrRdr_dmg"

exit 0

Comments:
  • Do you think this method might work with Acrobat 2017 using a key? I can't find any references on IT Ninja about Acrobat 2017 or other DC version installs. - rwt 4 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ