1 comment

  • Avatar

    Sometimes, as part of a Mac OS X install, it is necessary to run a .app application. A .app application is indeed a directory, with a well defined structure. Mac OS X recognizes and interprets it as an application when invoked through the graphical interface (i.e., from Finder). InstallBuilder <runProgram> action works like a command line invocation, so you have two options to invoke a .app from command line:

    Option 1: Run it through the OS X shell command "open":


    This has the drawback that the OS will return control immediately after invocation, so the installer will continue its work at the same time than the .app is running, which may or may not work for your particular situation.

    Option 2: Explore the .app structure, looking for the executable file. It is usually stored under "". The exact name can be found in another file inside the bundle: Contents/Info.plist. This is a text file that should contain something similar to:


    Where myExecutable is the name of your particular application. In that case, you could use a runProgram action as shown below:

         <programArguments>arguments go here</programArguments>

Please sign in to leave a comment.