Hallo,
ich habe zwei pkg paketiert.
o365 und adobe
Das klappt soweit auch ganz gut. Nun möchte ich die Applikationen aber auch deinstallieren können.
Ich habe mal mit dem sh script gespielt welches als default bereit gestellt wird im Wizzard, aber das wird irgendwie nichts.
Wenn ich uninstall mache passiert einfach gar nix. Kein Logeintrag, keine Reaktion, nichts.
Kann mir jemand Beipsiele geben, wie so ein script aussehen kann?
Muss noch etwas weiteres beachtet werden?
danke
Mario Schwab
MAC Paketierung - uninstall
-
mario.schwab
- Posts: 38
- Joined: 07. Apr 2016, 12:17
- Contact:
Re: MAC Paketierung - uninstall
Guten Tag Herr Schwab,
bei der Adobe CC Suite gibt es von Adobe einen vorhandenen Uninstaller.
https://helpx.adobe.com/creative-cloud/ ... ckage.html
Diesen "Uninstaller.pkg" legen Sie manuell in das dmg image im Paketverzeichnis ({UUID}/Data/<PaketName>.dmg).
Im Script uninstall.sh fügen Sie folgende Zeile ein:
Bei der Deinstallation wird der Mac EmpirumAgent die uninstall.sh ausführen.
Bei Office 365 gestaltet es sich schwieriger, da Sie anhand der Deinstalltionsschritte wie hier beschrieben https://helpx.adobe.com/creative-cloud/ ... ckage.html alles scripten müssen in etwa so:
Da ich zur Zeit kein Office auf meinem Mac und auch auf keinem Testgerät zur Verfügung habe, ist das ein nicht getestetes Script.
Das Script sollte noch Rechte zum Ausführen bekommen:
Ich hoffe ich konnte Ihnen etwas weiterhelfen.
bei der Adobe CC Suite gibt es von Adobe einen vorhandenen Uninstaller.
https://helpx.adobe.com/creative-cloud/ ... ckage.html
Diesen "Uninstaller.pkg" legen Sie manuell in das dmg image im Paketverzeichnis ({UUID}/Data/<PaketName>.dmg).
Im Script uninstall.sh fügen Sie folgende Zeile ein:
Code: Select all
sudo /usr/sbin/installer -pkg "/Volumes/<Name des gemounteten Volumes>/Uninstaller.pkg" -target /Bei Office 365 gestaltet es sich schwieriger, da Sie anhand der Deinstalltionsschritte wie hier beschrieben https://helpx.adobe.com/creative-cloud/ ... ckage.html alles scripten müssen in etwa so:
Code: Select all
#!/bin/sh
# uninstall.sh
# Matrix42 AG
#
# Created on 25/01/2017.
# Copyright (c) 2000-2017 Matrix42 AG. All rights reserved.
syslog -s -l warning "Empirum Agent running uninstall.sh"
syslog -s -l warning "--------------------------------------"
syslog -s -l warning "--------------------------------------"
syslog -s -l warning "Step 1"
syslog -s -l warning "Removing Office Apps from /Applications folder"
sudo /bin/rm -rf "/Applications/Microsoft Excel.app"
sudo /bin/rm -rf "/Applications/Microsoft PowerPoint.app"
sudo /bin/rm -rf "/Applications/Microsoft Word.app"
sudo /bin/rm -rf "/Applications/Microsoft Outlook.app"
sudo /bin/rm -rf "/Applications/Microsoft OneNote.app"
syslog -s -l warning "--------------------------------------"
syslog -s -l warning "Step 2 & 3"
syslog -s -l warning "Removing directories for all users and Dock icons"
userlist=$(/usr/bin/dscl . list /Users | grep -v '_' | grep -v 'Guest' | grep -v 'daemon' | grep -v 'macports' | grep -v 'nobody' | grep -v 'root')
for user in $userlist
do
sudo /bin/rm -rf "/Users/$user/Library/Containers/com.microsoft.errorreporting"
sudo /bin/rm -rf "/Users/$user/Library/Containers/com.microsoft.Excel"
sudo /bin/rm -rf "/Users/$user/Library/com.microsoft.netlib.shipassertprocess"
sudo /bin/rm -rf "/Users/$user/Library/Containers/com.microsoft.Office365ServiceV2"
sudo /bin/rm -rf "/Users/$user/Library/Containers/com.microsoft.Outlook"
sudo /bin/rm -rf "/Users/$user/Library/Containers/com.microsoft.PowerPoint"
sudo /bin/rm -rf "/Users/$user/Library/Containers/com.microsoft.RMS-XPCService"
sudo /bin/rm -rf "/Users/$user/Library/Containers/com.microsoft.Word"
sudo /bin/rm -rf "/Users/$user/Library/Containers/com.microsoft.onenote.mac"
sudo /bin/rm -rf "/Users/$user/Library/Containers/UBF8T346G9.ms"
sudo /bin/rm -rf "/Users/$user/Library/Containers/UBF8T346G9.Office"
sudo /bin/rm -rf "/Users/$user/Library/Containers/UBF8T346G9.OfficeOsfWebHost"
#delete item from com.apple.dock.plist
###########
dloc=$(defaults read com.apple.dock persistent-apps | grep file-label | awk '/Microsoft Excel/ {printf NR}')
dloc=$[$dloc-1]
sudo /usr/libexec/PlistBuddy -c "Delete persistent-apps:$dloc" "/Users/$user/Library/Preferences/com.apple.dock.plist"
###########
dloc=$(defaults read com.apple.dock persistent-apps | grep file-label | awk '/Microsoft Outlook/ {printf NR}')
dloc=$[$dloc-1]
sudo /usr/libexec/PlistBuddy -c "Delete persistent-apps:$dloc" "/Users/$user/Library/Preferences/com.apple.dock.plist"
###########
dloc=$(defaults read com.apple.dock persistent-apps | grep file-label | awk '/Microsoft PowerPoint/ {printf NR}')
dloc=$[$dloc-1]
sudo /usr/libexec/PlistBuddy -c "Delete persistent-apps:$dloc" "/Users/$user/Library/Preferences/com.apple.dock.plist"
###########
dloc=$(defaults read com.apple.dock persistent-apps | grep file-label | awk '/Microsoft Word/ {printf NR}')
dloc=$[$dloc-1]
sudo /usr/libexec/PlistBuddy -c "Delete persistent-apps:$dloc" "/Users/$user/Library/Preferences/com.apple.dock.plist"
###########
dloc=$(defaults read com.apple.dock persistent-apps | grep file-label | awk '/Microsoft OneNote/ {printf NR}')
dloc=$[$dloc-1]
sudo /usr/libexec/PlistBuddy -c "Delete persistent-apps:$dloc" "/Users/$user/Library/Preferences/com.apple.dock.plist"
sleep 3
# Restart Dock to persist changes
sudo /usr/bin/killall Dock
doneDas Script sollte noch Rechte zum Ausführen bekommen:
Code: Select all
sudo chmod a+x <Pfad/zum/Script.sh>Miralem Cebic
Product Owner
miralem.cebic@matrix42.com
Matrix42 AG | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | http://www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis.
Views expressed are not necessarily those of Matrix42 AG or of the support team.
Product Owner
miralem.cebic@matrix42.com
Matrix42 AG | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | http://www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis.
Views expressed are not necessarily those of Matrix42 AG or of the support team.
-
mario.schwab
- Posts: 38
- Joined: 07. Apr 2016, 12:17
- Contact:
Re: MAC Paketierung - uninstall
Hallo Herr Cebic,
für Adobe hat mir das geholfen, ich habe es etwas abgewandelt, ein uninstaller ist beim Paket mit dabei.
Office werde ich nun noch angehen, vielen Dank!
Gruß
Mario Schwab
für Adobe hat mir das geholfen, ich habe es etwas abgewandelt, ein uninstaller ist beim Paket mit dabei.
Office werde ich nun noch angehen, vielen Dank!
Gruß
Mario Schwab
Who is online
Users browsing this forum: No registered users and 3 guests