Adobe CS5.5 & removecs5.sh

mcrispin
Contributor II

Sorry for the cross-post, but I think the question is relevant to both groups.

With the impending release of Adobe CS 5.5, and a much improved AAMEE 2.0 ; has anyone concocted a removecs5 script for the resource kit much like what we've had before with CS3 and CS4?

I should think this would be a handy thing to have on hand given that there are some notable updates and additions (Adobe Audition, actually) - in CS 5.5 that I am sure at least my users will be asking for.

Thoughts anyone?

Michael Crispin
Duke University

3 REPLIES 3

talkingmoose
Moderator
Moderator

AAMEE creates an uninstaller .pkg file too for CS5. Will that not work for
On 4/25/11 2:56 PM, "Michael Crispin" <mike at michaelcrispin.com> wrote:
you?

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492

mcrispin
Contributor II

I imagine that it would, but I have feeling a script would be a little quicker and less prone to some of the trash Adobe installers tends to leave behind.

alplatt
New Contributor

I tweaked the CS4 one... I'm not the best on scripting but it seems to work. If anyone spots any mistakes please let me know!

Al

#!/bin/sh
####################################################################################################
#
# Copyright (c) 2010, JAMF Software, LLC. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the JAMF Software, LLC nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY JAMF SOFTWARE, LLC "AS IS" AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL JAMF SOFTWARE, LLC BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
####################################################################################################
#
# SUPPORT FOR THIS PROGRAM
#
# This program is distributed "as is" by JAMF Software, LLC's Resource Kit team. For more
# information or support for the Resource Kit, please utilize the following resources:
#
# http://list.jamfsoftware.com/mailman/listinfo/resourcekit
#
# http://www.jamfsoftware.com/support/resource-kit
#
# Please reference our SLA for information regarding support of this application:
#
# http://www.jamfsoftware.com/support/resource-kit-sla
#
####################################################################################################
#
# ABOUT THIS PROGRAM
#
# NAME
# removeCS5.5.sh -- Remove Adobe Create Suite 5.5.
#
# SYNOPSIS
# sudo removeCS5.5.sh
# sudo removeCS5.5.sh <mountPoint> <computerName> <currentUsername> <erase>
#
# DESCRIPTION
# This script will perform an uninstall of Adobe Creative Suite 3. The script is designed from
# a master list of files that are installed by the Adobe CS5.5 Master Collection. The script will
# detect to see if a file exists first, and if the file does exist, it will move the file or
# directory along with the directory structure for the file into:
#
# /Library/Application Support/JAMF/RemovedFiles
#
# Additionally, the script can be modified to completely erase the files that have been moved.
# Please note that this option should be used with caution, as it will permanently delete any
# files or directories included in the "files" array within this script.
# # The values supported in the <erase> parameter include:
#
# "TRUE"
# "FALSE"
# "YES"
# "NO"
#
####################################################################################################
#
# HISTORY
#
# Version: 1.1
#
# - Created by Nick Amundsen on April 7th, 2009
# - Updated by Nick Amundsen on January 21, 2010
# ####################################################################################################
#
# DEFINE VARIABLES & READ IN PARAMETERS
#
####################################################################################################

# HARDCODED VALUES ARE SET HERE
erase=""

# CHECK TO SEE IF A VALUE WAS PASSED FOR $4, AND IF SO, ASSIGN IT
if [ "$4" != "" ] && [ "$erase" == "" ]; then erase=$4
fi

####################################################################################################
# # SCRIPT CONTENTS - DO NOT MODIFY BELOW THIS LINE
#
####################################################################################################

files=( '/Applications/Adobe Acrobat X Pro' '/Applications/Adobe After Effects CS5.5' '/Applications/Adobe Bridge CS5.1' '/Applications/Adobe Contribute CS5.5' '/Applications/Adobe Device Central CS5.5' '/Applications/Adobe Dreamweaver CS5.5' '/Applications/Adobe Encore CS5.5' '/Applications/Adobe Extension Manager CS5.5' '/Applications/Adobe Fireworks CS5.1' '/Applications/Adobe Flash CS5.5' '/Applications/Adobe Flash Catalyst CS5.5' '/Applications/Adobe Media Encoder CS5.5' '/Applications/Adobe Extension Manager CS5.5' '/Applications/Adobe Illustrator CS5.1' '/Applications/Adobe InDesign CS5.5' '/Applications/Adobe Photoshop CS5.1' '/Applications/Adobe Premiere Pro CS5.5' '/Applications/Adobe Soundbooth CS5.5' '/Applications/Adobe Soundbooth Scores' '/Applications/Adobe Stock Photos CS5.5' '/Applications/Utilities/Adobe Installers' '/Applications/Utilities/Adobe Utilities.localized' '/Library/Application Support/Adobe' '/Library/Application Support/FLEXnet Publisher' '/Library/Application Support/Macromedia/FlashAuthor.cfg' '/Library/Application Support/Macromedia/FlashPlayerTrust' '/Library/Application Support/Synthetic Aperture Adobe Bundle' '/Library/Fonts/ACaslonPro-Bold.otf' '/Library/Fonts/ACaslonPro-BoldItalic.otf' '/Library/Fonts/ACaslonPro-Italic.otf' '/Library/Fonts/ACaslonPro-Regular.otf' '/Library/Fonts/ACaslonPro-Semibold.otf' '/Library/Fonts/ACaslonPro-SemiboldItalic.otf' '/Library/Fonts/AGaramondPro-Bold.otf' '/Library/Fonts/AGaramondPro-BoldItalic.otf' '/Library/Fonts/AGaramondPro-Italic.otf' '/Library/Fonts/AGaramondPro-Regular.otf' '/Library/Fonts/ArnoPro-Bold.otf' '/Library/Fonts/ArnoPro-BoldCaption.otf' '/Library/Fonts/ArnoPro-BoldDisplay.otf' '/Library/Fonts/ArnoPro-BoldItalic.otf' '/Library/Fonts/ArnoPro-BoldItalicCaption.otf' '/Library/Fonts/ArnoPro-BoldItalicDisplay.otf' '/Library/Fonts/ArnoPro-BoldItalicSmText.otf' '/Library/Fonts/ArnoPro-BoldItalicSubhead.otf' '/Library/Fonts/ArnoPro-BoldSmText.otf' '/Library/Fonts/ArnoPro-BoldSubhead.otf' '/Library/Fonts/ArnoPro-Caption.otf' '/Library/Fonts/ArnoPro-Display.otf' '/Library/Fonts/ArnoPro-Italic.otf' '/Library/Fonts/ArnoPro-ItalicCaption.otf' '/Library/Fonts/ArnoPro-ItalicDisplay.otf' '/Library/Fonts/ArnoPro-ItalicSmText.otf' '/Library/Fonts/ArnoPro-ItalicSubhead.otf' '/Library/Fonts/ArnoPro-LightDisplay.otf' '/Library/Fonts/ArnoPro-LightItalicDisplay.otf' '/Library/Fonts/ArnoPro-Regular.otf' '/Library/Fonts/ArnoPro-Smbd.otf' '/Library/Fonts/ArnoPro-SmbdCaption.otf' '/Library/Fonts/ArnoPro-SmbdDisplay.otf' '/Library/Fonts/ArnoPro-SmbdItalic.otf' '/Library/Fonts/ArnoPro-SmbdItalicCaption.otf' '/Library/Fonts/ArnoPro-SmbdItalicDisplay.otf' '/Library/Fonts/ArnoPro-SmbdItalicSmText.otf' '/Library/Fonts/ArnoPro-SmbdItalicSubhead.otf' '/Library/Fonts/ArnoPro-SmbdSmText.otf' '/Library/Fonts/ArnoPro-SmbdSubhead.otf' '/Library/Fonts/ArnoPro-SmText.otf' '/Library/Fonts/ArnoPro-Subhead.otf' '/Library/Fonts/BellGothicStd-Black.otf' '/Library/Fonts/BellGothicStd-Bold.otf' '/Library/Fonts/BickhamScriptPro-Bold.otf' '/Library/Fonts/BickhamScriptPro-Regular.otf' '/Library/Fonts/BickhamScriptPro-Semibold.otf' '/Library/Fonts/BirchStd.otf' '/Library/Fonts/BlackoakStd.otf' '/Library/Fonts/BrushScriptStd.otf' '/Library/Fonts/ChaparralPro-Bold.otf' '/Library/Fonts/ChaparralPro-BoldIt.otf' '/Library/Fonts/ChaparralPro-Italic.otf' '/Library/Fonts/ChaparralPro-Regular.otf' '/Library/Fonts/CharlemagneStd-Bold.otf' '/Library/Fonts/CooperBlackStd-Italic.otf' '/Library/Fonts/CooperBlackStd.otf' '/Library/Fonts/EccentricStd.otf' '/Library/Fonts/GaramondPremrPro-It.otf' '/Library/Fonts/GaramondPremrPro-Smbd.otf' '/Library/Fonts/GaramondPremrPro-SmbdIt.otf' '/Library/Fonts/GaramondPremrPro.otf' '/Library/Fonts/GiddyupStd.otf' '/Library/Fonts/HoboStd.otf' '/Library/Fonts/KozGoPro-Bold.otf' '/Library/Fonts/KozGoPro-ExtraLight.otf' '/Library/Fonts/KozGoPro-Heavy.otf' '/Library/Fonts/KozGoPro-Light.otf' '/Library/Fonts/KozGoPro-Medium.otf' '/Library/Fonts/KozGoPro-Regular.otf' '/Library/Fonts/KozMinPro-Bold.otf' '/Library/Fonts/KozMinPro-ExtraLight.otf' '/Library/Fonts/KozMinPro-Heavy.otf' '/Library/Fonts/KozMinPro-Light.otf' '/Library/Fonts/KozMinPro-Medium.otf' '/Library/Fonts/KozMinPro-Regular.otf' '/Library/Fonts/LetterGothicStd-Bold.otf' '/Library/Fonts/LetterGothicStd-BoldSlanted.otf' '/Library/Fonts/LetterGothicStd-Slanted.otf' '/Library/Fonts/LetterGothicStd.otf' '/Library/Fonts/LithosPro-Black.otf' '/Library/Fonts/LithosPro-Regular.otf' '/Library/Fonts/MesquiteStd.otf' '/Library/Fonts/MinionPro-Bold.otf' '/Library/Fonts/MinionPro-BoldCn.otf' '/Library/Fonts/MinionPro-BoldCnIt.otf' '/Library/Fonts/MinionPro-BoldIt.otf' '/Library/Fonts/MinionPro-It.otf' '/Library/Fonts/MinionPro-Medium.otf' '/Library/Fonts/MinionPro-MediumIt.otf' '/Library/Fonts/MinionPro-Regular.otf' '/Library/Fonts/MinionPro-Semibold.otf' '/Library/Fonts/MinionPro-SemiboldIt.otf' '/Library/Fonts/MyriadPro-Bold.otf' '/Library/Fonts/MyriadPro-BoldCond.otf' '/Library/Fonts/MyriadPro-BoldCondIt.otf' '/Library/Fonts/MyriadPro-BoldIt.otf' '/Library/Fonts/MyriadPro-Cond.otf' '/Library/Fonts/MyriadPro-CondIt.otf' '/Library/Fonts/MyriadPro-It.otf' '/Library/Fonts/MyriadPro-Regular.otf' '/Library/Fonts/MyriadPro-Semibold.otf' '/Library/Fonts/MyriadPro-SemiboldIt.otf' '/Library/Fonts/NuevaStd-BoldCond.otf' '/Library/Fonts/NuevaStd-BoldCondItalic.otf' '/Library/Fonts/NuevaStd-Cond.otf' '/Library/Fonts/NuevaStd-CondItalic.otf' '/Library/Fonts/OCRAStd.otf' '/Library/Fonts/OratorStd-Slanted.otf' '/Library/Fonts/OratorStd.otf' '/Library/Fonts/PoplarStd.otf' '/Library/Fonts/PrestigeEliteStd-Bd.otf' '/Library/Fonts/RosewoodStd-Regular.otf' '/Library/Fonts/StencilStd.otf' '/Library/Fonts/TektonPro-Bold.otf' '/Library/Fonts/TektonPro-BoldCond.otf' '/Library/Fonts/TektonPro-BoldExt.otf' '/Library/Fonts/TektonPro-BoldObl.otf' '/Library/Fonts/TrajanPro-Bold.otf' '/Library/Fonts/TrajanPro-Regular.otf' '/Library/Internet Plug-Ins/AdobePDFViewer.plugin' '/Library/LaunchDaemons/com.adobe.versioncueCS5.5.plist' '/Library/Logs/Adobe' '/Library/PreferencePanes/VersionCueCS5.5.prefPane' '/Library/Preferences/com.adobe.acrobat.pdfviewer.plist' '/Library/Preferences/com.adobe.PDFAdminSettings.plist' '/Library/Preferences/com.Adobe.Premiere Pro.3.0.plist' '/Library/Preferences/com.adobe.versioncueCS5.5.plist' '/Library/Preferences/FLEXnet Publisher' '/Library/Printers/PPD Plugins/AdobePDFPDE800.plugin' '/Library/Printers/PPDs/Contents/Resources/en.lproj/ADPDF8.PPD' '/Library/Printers/PPDs/Contents/Resources/ja.lproj/ADPDF8J.PPD' '/Library/Printers/PPDs/Contents/Resources/ko.lproj/ADPDF8K.PPD' '/Library/Printers/PPDs/Contents/Resources/zh_CN.lproj/ADPDF8CS.PPD' '/Library/Printers/PPDs/Contents/Resources/zh_TW.lproj/ADPDF8CT.PPD' '/Library/QuickTime/FLV.component' '/Library/QuickTime/SoundboothScoreCodec.component' '/private/etc/cups/ppd/AdobePDF8.ppd' '/private/etc/mach_init_per_user.d/com.adobe.versioncueCS5.5.monitor.plist' '/usr/libexec/cups/backend/pdf800' )

### Create the RemovedFiles Directory if it does not currently exist ###
if [ ! -e '/Library/Application Support/JAMF/RemovedFiles' ]; then echo "Creating directory to store moved files..." /bin/mkdir '/Library/Application Support/JAMF/RemovedFiles'
fi

### Loop through the files included in the array and move the files if they are found ###

for (( i = 0; i < ${#files[@]} ; i++ ))
do myFile="${files[$i]}" if [ -e "$myFile" ]; then if [ -f "$myFile" ]; then ### file object is a true file so create a directory based on it ### echo "Moving file: $myFile..." myDir=/usr/bin/dirname "$myFile" /bin/mkdir -p "/Library/Application Support/JAMF/RemovedFiles/$myDir" /bin/mv "$myFile" "/Library/Application Support/JAMF/RemovedFiles/$myFile" else ### file object is a directory, so create the directory ### echo "Moving directory: $myFile..." myDir=/usr/bin/dirname "$myFile" /bin/mkdir -p "/Library/Application Support/JAMF/RemovedFiles/$myDir" /bin/mv "$myFile" "/Library/Application Support/JAMF/RemovedFiles/$myFile" fi fi
done

### Check to see if the "erase" parameter is set, and if so, delete the files that were moved ###

case $erase in "true" | "TRUE" | "yes" | "YES") echo "Emptying directory: /Library/Application Support/JAMF/RemovedFiles..." /bin/rm -rf "/Library/Application Support/JAMF/RemovedFiles";; *)
esac

exit 0;