Thursday 6 March 2014

Script to update Flash being tested to update via ARD

cat#!/bin/sh

# Script to download and install Flash Player.
# Only works on Intel systems.

# Change working directory to /tmp

/usr/bin/cd /tmp

#download flash dmg. Yes I have agreed to all of the licensing terms and am fully compliant with everything in the whole world. Add -s to curl if you hate progress meters
echo downloading

/usr/bin/curl -O http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_flash_player_12_osx.dmg

# Mount the install_flash_player_12_osx.dmg disk image in /Volumes

echo "`date`: Mounting installer disk image."
/usr/bin/hdiutil attach install_flash_player_12_osx.dmg -nobrowse -noverify -noautoopen

echo "`date`: Installing..."

/usr/sbin/installer -dumplog -verbose -pkg "/Volumes/Flash Player/Install Adobe Flash Player.app/Contents/Resources/Adobe Flash Player.pkg" -target "/"

echo "`date`: Unmounting installer disk image."

# Clean-up

# Unmount the install_flash_player_12_osx.dmg disk image from /Volumes

/usr/bin/hdiutil eject -force /Volumes/Flash\ Player

# Remove the install_flash_player_12_osx.dmg disk image from /tmp

/bin/rm -rf /tmp/install_flash_player_12_osx.dmg

No comments:

Post a Comment