Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start application after installation with PackageMaker

I am wondering how to start an application after installation with PackageMaker. I am receiving tons of emails from my users asking me why the app does not start automatically.

Thanks in advance for your help,

Regards,

like image 474
AP. Avatar asked Dec 07 '10 13:12

AP.


4 Answers

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"
like image 118
markhunte Avatar answered Sep 28 '22 10:09

markhunte


I solved this by adding a post install.sh script that has

#!/bin/bash

open /Applications/NewlyInstalled.app
like image 42
synthesizerpatel Avatar answered Sep 28 '22 10:09

synthesizerpatel


What about choosing as postinstall action "Open File" and select as component your app?

like image 43
Dominik Seibold Avatar answered Sep 28 '22 11:09

Dominik Seibold


Due respect to all above answer, but This is also working after installation with packages which i mention below.

open -a 'App Name'
like image 37
Anand Nanavaty Avatar answered Sep 28 '22 09:09

Anand Nanavaty