SimonGuertin wrote:
I am trying to launch my application that was just installed by a installer created with PackageMaker.
You're the only one who truly knows the requirements of your installer/application, but launching an app immediately following it's installation is fairly non-standard on the Mac platform.
I would guess that most users will be surprised to see this happen and some may be annoyed. Just because someone is installing your app doesn't mean they're also wanting to run it immediately. I've run across some installers that have Finder open the folder containing the app they just installed but offhand I can't think of any Mac installers that launch their app.
Another thing to consider, and perhaps the reason PackageMaker doesn't make it easy to do what you're wanting, is that there is a command line version of the installer. The command line installer allows software packages to be installed by shell scripts or remotely when no one is even logged on to a system. This capability is particularly important in managed environments such as schools, computer labs and enterprises. If your installer requires the GUI and requires that someone be sitting in front of the computer running the installer then it's going to increase the difficultly for admins to distribute your application in large environments.
Steve
PS - ideally it would be nice if it could be determined during an install if the GUI was available (or if the install was taking place on the command line) so that GUI related stuff could be done (or avoided)... but I don't know if that's possible. In any event, your installer shouldn't
depend on the GUI being available.