A scripted way to deliver a download to a client via a KACE script but keeping the resources on a webserver. This script is for Mac systems only.
CODE WRITTEN BY QUEST KACE SUPPORT IS FOR DEMONSTRATION PURPOSES ONLY AND NOT SUPPORTED BY KACE TECHNICAL SUPPORT. CLIENT CONFIRMS THE NEED FOR TESTING AND ACCEPTS ALL RESPONSIBILITY FOR USE AND MISUSE OF CODE. QUEST KACE SHALL NOT BE HELD LIABLE FOR DAMAGE OR DOWN TIME RESULTING FROM USE OF THIS OR ANY CODE PRESENTED FOR PURPOSES OF TROUBLESHOOTING OR DEMONSTRATION.
.
This script for Macs will pull variables from the top of the script that are definable and then use them to check if a file exists, download from a webserver and install if it doesnt.
Note: Launching this script will install Yahoo! Messenger on the system silently
Paste the following into an Online Shell Script. (Scripting > Choose Action > New > Select Online Shell Script)
# Script Variables for User to configure
# DMG = Full name of the DMG to install
# URI = Full Resource path, including DMG file to download
# SRC = The mount name created when running the DMG
# Begin user configuration
DMG=yahoomessenger_3.0.2build235554.dmg
URI=http://xp.yimg.com/gj/msgr/mac/yahoomessenger_3.0.2build235554.dmg
SRC="Yahoo! Messenger"
# End user configuration
# Do not edit below this line
FPA="$SRC".app
echo "BEGIN KACE INSTALLER 1.0"
echo "Scanning directory..."
cd /Applications
if [ -d "$FPA" ]; then
echo "APPLICATION FOUND INSTALL NOT NEEDED"
else
echo "DONWLOADING APPLICATION FROM APPROVED SOURCE"
mkdir /tmp/ym
cd /tmp/ym
curl -O $URI
clear
echo "RUNNNING APP EXTRACTOR FROM DMG"
hdiutil convert $DMG -format UDTO -o tempDMG.cdr
hdiutil attach tempDMG.cdr
rm -i -f $DMG
cd "/Volumes/$SRC"
ditto -rsrc "./$FPA" "/Applications/$FPA"
clear
echo "RUNNING INSTALLER CLEAUP ROUTINE"
cd /tmp/ym
rm -i -f tempDMG.cdr
hdiutil detach "/Volumes/$SRC"
cd ..
rmdir ./ym
fi
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center