www.altrove.info ICT a 360 gradi - Contattaci per mettere in buone mani la tua infrastruttura
#!/bin/sh
# shell script to clean all files created or modified
# during the install of Adobe Acrobat Reader DC
# exit on error and echo commands
set -ex
# check if a directory is empty
is_empty() { [ -z `find $1/. ! -name . -print -prune | head -1` ] ; }
# rm left empty dir
rm_ifempty() {
if is_empty $1 ; then
rm -rf $1
else
echo $1 not empty
fi ;
}
# ----------------------------------------------------------------------
# stop and remove daemons
cd /Library/LaunchDaemons
launchctl unload com.adobe.ARMDC.Communicator.plist
rm -f com.adobe.ARMDC.Communicator.plist
launchctl unload com.adobe.ARMDC.SMJobBlessHelper.plist
rm -f com.adobe.ARMDC.SMJobBlessHelper.plist
cd /Library/LaunchAgents
launchctl unload com.adobe.ARMDCHelper.*.plist
rm -f com.adobe.ARMDCHelper.*.plist
# ----------------------------------------------------------------------
# remove the application
cd /Applications
rm -rf Adobe\ Acrobat\ Reader\ DC.app
# remove system wide preferences
cd /Library/Preferences
rm -f com.adobe.reader.DC.WebResource.plist
# ----------------------------------------------------------------------
# remove all Application dependant ressources
cd /Library/Application\ Support/Adobe
rm -rf ARMDC
rm -rf ARMNext
rm -rf HelpCfg
rm -rf Reader/DC
# Reader/11.0 should be kept
# if Reader directory is empty remove it
rm_ifempty Reader
cd /Library/Internet\ Plug-Ins/
rm -rf AdobePDFViewer.plugin
rm -rf AdobePDFViewerNPAPI.plugin
cd /Library/PrivilegedHelperTools
rm -f com.adobe.ARMDC.*
# ----------------------------------------------------------------------
# remove HOME dependant ressources
cd ~/Library/Application\ Support/Adobe
rm -rf AcroCef
rm -rf Acrobat/DC
# Acrobat/other_versions shoud be kept
# if Acrobat directory is empty remove it
rm_ifempty Acrobat
rm -rf Linguistics
cd ~/Library/Application\ Support
rm -rf CEF
# crash dumps
cd ~/Library/Logs/DiagnosticReports
rm -rf AdobeReader_*.crash
cd ~/Library/Preferences
rm com.adobe.AdobeRdrCEF.plist
# ----------------------------------------------------------------------
# remove receipts files
cd /private/var/db/receipts
rm com.adobe.RdrServicesUpdater.*
rm com.adobe.acrobat.DC.*
rm com.adobe.armdc.*
defaults write com.apple.screencapture type NuovoFormato
defaults write com.apple.screencapture type JPG
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -domain local -domain system -domain user
killall Finder
Pagina creata in 0.072 secondi con 14 interrogazioni.