Skip to content

Instantly share code, notes, and snippets.

@edingc
Created July 9, 2012 11:29
Show Gist options
  • Save edingc/3075923 to your computer and use it in GitHub Desktop.
Save edingc/3075923 to your computer and use it in GitHub Desktop.
Supressing Adobe Reader X EULA and Disabling Updates on Mac OS X using PlistBuddy
#!/bin/bash
# Disables Adobe Reader X EULA and automatic update checks
USERPREFS_DIR="/System/Library/User Template/English.lproj/Library/Preferences"
/usr/libexec/PlistBuddy -c "Delete 10:EULAAccepted" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Add 10:EULAAccepted bool TRUE" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Delete 10:AVGeneral:CheckForUpdatesAtStartup:1" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Add 10:AVGeneral:CheckForUpdatesAtStartup array" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Add 10:AVGeneral:CheckForUpdatesAtStartup:1" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Add 10:AVGeneral:CheckForUpdatesAtStartup:1 integer 0" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Add 10:AVGeneral:CheckForUpdatesAtStartup:1 bool FALSE"
# Exit with zero status
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment