How to install launch agent on Mac os x 10.5 / 10.6

3.8k views Asked by At

I have developed a launchAgent in cocoa. It works fine for me on dev environment, by placing the plist file in location /Library/LaunchAgents/.To distribute and install this on other laptops, I created the package using package maker tool. As part of installation process I want to change permission of the plist file and copy it to /Library/LaunchAgents location. Could any one tell me how can i achieve this ?

Thanks in advance for help....Any help will be appreciated ..!!!!

1

There are 1 answers

10
AudioBubble On BEST ANSWER

In PackageMaker, select the launchd plist, and in "Configuration" set the "Install" location to /Library/LaunchAgents/com.unicorn.omgponies.plist and the "Destination" to /. You probably don't want to enable relocation for a launchagent. Then go "Contents" and you can set the ownership and permissions there.