Re: Ask user to quit application before installing?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com On lundi, octobre 15, 2007, at 07:43 PM, Bryan Hansen wrote: - not all applications have an CFBundleIdentifier - not all applications have a correct Creator code or even one My $0.01 _______________________________________________ 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... I'm looking for a way to ask the user to quit an application before installing. Is this possible with package maker? Additionally to what Bill C. said, there's another option possible as long as you don't need to install your package through ARD or via the installer command line: Think reverse. Instead of checking during the installation procedure, don't launch the installation until the application has been quit. This would require putting the package inside a wrapper. You can stick a custom icon or a package icon on the wrapper application. When the application you want to be quit has done so, you can open the package (NSWorkspace or LaunchServices should work fine in most OS versions) This allows for more flexibility from a user point of view (nicer UI) and on the method you want to use to check that the application is still running: - ps or killall is not reliable to find a process as they just check the name (a partial one that is). This email sent to site_archiver@lists.apple.com
participants (1)
-
Stéphane Sudre