Re: postinstall script packagemaker
Re: postinstall script packagemaker
- Subject: Re: postinstall script packagemaker
- From: Russell Gray <email@hidden>
- Date: Mon, 19 Oct 2009 08:19:29 +1100
10.6.1,
and PackageMaker 3.0.4
On 19/10/2009, at 8:16 AM, Nick Peelman wrote:
What version of OSX are you working on?
-nick
--
Nick Peelman
email@hidden
Sent via my BlackBerry
-----Original Message-----
From: Russell Gray <email@hidden>
Date: Mon, 19 Oct 2009 08:17:18
To: <email@hidden>
Subject: Re: postinstall script packagemaker
that deletes the enitire plist file.....
im stuck
On 19/10/2009, at 8:00 AM, Nick Peelman wrote:
defaults delete ~/Library/Preferences/com.apple.Safari deleteKey
works as expected for me...you sure there isn't something else wrong
there? I've used similar deletes elsewhere, syntactically identical
to that, without issue.
-nick
On Sun, Oct 18, 2009 at 4:54 PM, Russell Gray
<email@hidden> wrote:
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:
@peelman.us
This email sent to email@hidden
--
Nick Peelman
email@hidden
_______________________________________________
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
_______________________________________________
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