• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
postinstall script packagemaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

postinstall script packagemaker


  • Subject: postinstall script packagemaker
  • From: Russell Gray <email@hidden>
  • Date: Mon, 19 Oct 2009 07:54:35 +1100

how do I delete a key in a plist file, in a postinstall script?

I have tried:
Code:
#!/bin/sh

defaults delete $HOME/Library/Preferences/com.apple.Safari myKeyToDelete
the script deletes the entire plist file though, not the key?

I tried this:

Code:
#!/bin/sh

/usr/bin/defaults delete myKeyToDelete
which generates an error in the installer, and doesn't delete the key.
and this one:

Code:
#!/bin/sh

MY_UNUSED_KEY="com.apple.Safari myKeyToDelete"
if [  -d "MY_UNUSED_KEY" ]; then
	echo "Removing unused preferences"
	/usr/bin/defaults delete "MY_UNUSED_KEY"
fi
which doesnt generate an error, but also doesnt delete the key?


this shouldnt be that difficult....
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Missing install receipt and script parameter in Snow Leopard
  • Next by Date: Re: postinstall script packagemaker
  • Previous by thread: Re: Missing install receipt and script parameter in Snow Leopard
  • Next by thread: Re: postinstall script packagemaker
  • Index(es):
    • Date
    • Thread