Open command returns inmediately in OS X
| Author: BitRock Support Date: May 13, 2009 15:14 Tags: |
Actions
OS X Native Packaging |
It is possible to launch .app application bundles or .pkg programs in OS X using the open command<:/p>
<runProgram> <program>open</program> <programArguments>"${installdir}/packages/mypackage.pkg"</programArguments> </runProgram> |
However the open returns immediately and the installation continues. If we want to wait until the application finishes, you can use the -W command line option, as follows:
<runProgram> <program>open</program> <programArguments>-W "${installdir}/packages/mypackage.pkg"</programArguments> </runProgram> |