Re: [Q] Is there a way to log what a postinstallation shell script does?
Re: [Q] Is there a way to log what a postinstallation shell script does?
- Subject: Re: [Q] Is there a way to log what a postinstallation shell script does?
- From: JongAm Park <email@hidden>
- Date: Mon, 23 Jun 2008 15:24:01 -0700
Hmm... it doesn't seem to invoke anything...
I tried changing the post installation script to :
open -b com.apple.TextEdit
But, after it installs a file, it doesn't invoke the TextEdit...
So.. is the PackageMaker broken?
JongAm Park wrote:
Hello.
I wrote a post installation script like :
#!/bin/sh
echo $1
echo $SCRIPT_NAME
sudo -u $USER osascript $1/Contents/Resources/Add_Login_Item.scpt
exit 0
The content of the Add_Login_item.scpt is :
tell application "System Events"
make new login item at end with properties {
path:"/Library.......", hidden:flase}
end tell
The path is the installed path of the interested application.
However, nothing happens.
Also, although I put the echo $1 and so on, I couldn't see the echoed
information from the console. So I don't know what is happening.
Can anyone tell me what can be wrong and how to fix it?
Or is it prohibited to install a log in item like this?
Thank you.
_______________________________________________
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