site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com <installer-dev-bounces+xochitl_lunde=tripplite.com@lists.apple.com> wrote on 03/22/2010 12:22:49 AM:
Hi,
I am currently using PackageMaker 3.0.4 on Snow Leopard to build
my package.I want to know how to ask the user to quit an application
before proceeding for install if that application is already
running. Basically, I want to know how the user can be prompted to
quit the application if it is running and then proceeding further in
installation like other applications on MAC.Any help on this matter
will be greatly appreciated.
Thanks in advance,
Spondita
On the requirements pane of any choice or a distribution package, you can add a requirement using the '+' button. You could choose 'Result of Script' for the 'If' parameter, and write a script to check for the process running. I've never done this myself, but that is where it appears that the interface for doing so is. You can also go to a distribution's 'Actions' menu and use a "Get Application" and "Kill Application", but in my experience that doesn't warn a user that the application is being killed. What you probably want most is a way to get the InstallationCheck script working so that you can provide a nice error message back to a user (which I have just learned is supported only from InstallationCheck and VolumeCheck scripts). I don't know how to do this using PackageMaker, but Nick Peelman has a page that talks about the InstallationCheck script and has a demo that uses Iceberg.
participants (1)
-
Xochitl Lunde