How to start application after installation with PackageMaker
I am wondering how to start an application after installation with PackageMaker. I am receiving 开发者_C百科tons of emails from my users asking me why the app does not start automatically.
Thanks in advance for your help,
Regards,
Use the -b option and give the applications bundle identifcation
" -b bundle_indentifier Specifies the bundle identifier for the application to use when opening the file "
open -b "app.bundle.id"
I solved this by adding a post install.sh script that has
#!/bin/bash
open /Applications/NewlyInstalled.app
What about choosing as postinstall action "Open File" and select as component your app?
Due respect to all above answer, but This is also working after installation with packages which i mention below.
open -a 'App Name'
精彩评论