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

Comments

Please log in to comment

Answers

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
Answered 01/26/2016 by: taylor-madeak
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity