Reputation: 15039
I have a built a cocoa application that I have packaged using package maker so that the app is installed using the installer.
After install is finished I want to run the installed application. In the package maker I can see postinstall actions, but I don't find an appropriate action to execute the application.
Any ideas what should I do ? my app is install in the /Applications/my.app
Should I write a script file of some sort or should the package maker help me run the app?
Thanks, Ahmed
Upvotes: 1
Views: 509
Reputation: 299345
You need to add a postflight
(assuming you want this for both installs and upgrades. If you just want it for installs, use postinstall
).
Just call open "$3/Applications/my.app"
to launch.
$3
is the install target. It's usually going to be /
, but if you're being installed onto another volume, it could be something different like /Volumes/Other_Drive
.
Upvotes: 2