5

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,

AP.
  • 5,205
  • 7
  • 50
  • 94

4 Answers4

7

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"
markhunte
  • 6,805
  • 2
  • 25
  • 44
3

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

#!/bin/bash

open /Applications/NewlyInstalled.app
synthesizerpatel
  • 27,321
  • 5
  • 74
  • 91
  • but what if the user install it on a different directory? is there a way to get the correct installation directory from somewhere? – schystz Nov 28 '12 at 12:29
2

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

open -a 'App Name'
Anand Nanavaty
  • 554
  • 4
  • 13
2

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

Dominik Seibold
  • 2,439
  • 1
  • 23
  • 29
  • 1
    The issue is that the installer requires admin rights to install and the appli will be started with the admin account – AP. Dec 07 '10 at 17:39