Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Last active November 17, 2015 14:05
Show Gist options
  • Save nmcspadden/6d35fff8200bf06d8eb5 to your computer and use it in GitHub Desktop.
Save nmcspadden/6d35fff8200bf06d8eb5 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<true/>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>description</key>
<string>AppStore iLife '11 app autoremoval</string>
<key>display_name</key>
<string>AppStore iLife '11 apps</string>
<key>installer_type</key>
<string>nopkg</string>
<key>name</key>
<string>PreinstalledAppStoreApps</string>
<key>postuninstall_script</key>
<string>#!/bin/sh
/bin/rm /var/db/.MASManifest
</string>
<key>receipts</key>
<array>
<dict>
<key>packageid</key>
<string>com.apple.pkg.GarageBand_AppStore</string>
<key>version</key>
<string>6.0.5.0.1.1203730862</string>
</dict>
<dict>
<key>packageid</key>
<string>com.apple.pkg.iMovie_AppStore</string>
<key>version</key>
<string>9.0.8.0.1.1263389684</string>
</dict>
<dict>
<key>packageid</key>
<string>com.apple.pkg.iPhoto_AppStore</string>
<key>version</key>
<string>9.4.1.0.1.1263389684</string>
</dict>
<dict>
<key>packageid</key>
<string>com.apple.pkg.Numbers3</string>
<key>version</key>
<string>9.4.1.0.1.1263389684</string>
</dict>
<dict>
<key>packageid</key>
<string>com.apple.pkg.Keynote6</string>
<key>version</key>
<string>9.4.1.0.1.1263389684</string>
</dict>
<dict>
<key>packageid</key>
<string>com.apple.pkg.Pages5</string>
<key>version</key>
<string>9.4.1.0.1.1263389684</string>
</dict>
</array>
<key>unattended_uninstall</key>
<true/>
<key>uninstallcheck_script</key>
<string>#!/bin/sh
# a script to detect pre-installed iLife AppStore apps.
MASMANIFEST=/var/db/.MASManifest
if [ -e "$MASMANIFEST" ]; then
/usr/sbin/pkgutil --pkg-info com.apple.pkg.GarageBand_AppStore
GARAGEBAND=$?
/usr/sbin/pkgutil --pkg-info com.apple.pkg.iMovie_AppStore
IMOVIE=$?
/usr/sbin/pkgutil --pkg-info com.apple.pkg.iPhoto_AppStore
IPHOTO=$?
/usr/sbin/pkgutil --pkg-info com.apple.pkg.Numbers3
NUMBERS=$?
/usr/sbin/pkgutil --pkg-info com.apple.pkg.Keynote6
KEYNOTE=$?
/usr/sbin/pkgutil --pkg-info com.apple.pkg.Pages5
PAGES=$?
if [ "$GARAGEBAND" -ne 0 -a "$IMOVIE" -ne 0 -a "$IPHOTO" -ne 0 -a "$NUMBERS" -ne 0 -a "$KEYNOTE" -ne 0 -a "$PAGES" -ne 0 ]; then
# no AppStore receipts found
/bin/rm "$MASMANIFEST"
# exit 1 to say we don't need uninstall
exit 1
else
# exit 0 to indicate we need uninstall
exit 0
fi
fi
# exit 1 to say we don't need uninstall
exit 1
</string>
<key>uninstall_method</key>
<string>uninstall_script</string>
<key>uninstall_script</key>
<string>#!/bin/sh
/bin/rm -rf /Applications/iPhoto.app
/bin/rm -rf /Applications/GarageBand.app
/bin/rm -rf /Applications/iMovie.app
/bin/rm -rf /Applications/Numbers.app
/bin/rm -rf /Applications/Pages.app
/bin/rm -rf /Applications/Keynote.app
/usr/sbin/pkgutil --forget com.apple.pkg.iPhoto_AppStore
/bin/rm -rf /Library/Receipts/com.apple.pkg.iPhoto_AppStore*
/usr/sbin/pkgutil --forget com.apple.pkg.GarageBand_AppStore
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_GarageBandCoreContent
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsChillwave
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsDeepHouse
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsDubstep
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsElectroHouse
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsGarageBand
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsHipHop
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsJamPack1
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsModernRnB
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsRemixTools
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsRhythmSection
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsSymphony
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsTechHouse
/usr/sbin/pkgutil --forget com.apple.pkg.MAContent10_PremiumPreLoopsWorld
/bin/rm -rf /Library/Receipts/com.apple.pkg.GarageBand_AppStore*
/bin/rm -rf /Library/Receipts/com.apple.pkg.MAContent10_*
/bin/rm -rf /Library/Application\ Support/GarageBand
/bin/rm -rf /Library/Application\ Support/Logic
/bin/rm -rf /Library/Audio/Apple\ Loops
/bin/rm -rf /Library/Audio/Impulse\ Responses
/usr/sbin/pkgutil --forget com.apple.pkg.iMovie_AppStore
/bin/rm -rf /Library/Receipts/com.apple.pkg.iMovie_AppStore*
/usr/sbin/pkgutil --forget com.apple.pkg.Numbers3
/bin/rm -rf /Library/Receipts/com.apple.pkg.Numbers3*
/usr/sbin/pkgutil --forget com.apple.pkg.Keynote6
/bin/rm -rf /Library/Receipts/com.apple.pkg.Keynote6*
/usr/sbin/pkgutil --forget com.apple.pkg.Pages5
/bin/rm -rf /Library/Receipts/com.apple.pkg.Pages5*
exit 0
</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>2011</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment