• Benvenuto su Altrove Consulting Forum.
 

Rimuovere completamente installazione di Adobe Acrobat DC, CC su OSX Apple Mac

Aperto da Max Brezzi, Venerdì, 23 Dicembre 2016, 13:31:58 PM

Discussione precedente - Discussione successiva

0 Utenti e 1 Visitatore stanno visualizzando questa discussione.

Max Brezzi

How to clean uninstall Adobe Acrobat Reader DC?


http://apple.stackexchange.com/questions/221583/how-to-clean-uninstall-adobe-acrobat-reader-dc/231800#231800


-------

Script:

run with root


sudo sh xxxxxxx.sh



#!/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.*
;)
Massimiliano Brezzi