Re: Installer failing in 10.7
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=guThALB1eKc3TlCtHEwiQ+PijrUEYXEw1ut716Sc4Do=; b=aOXhIUqEV5Jsjpdo2pnxcSgogomj/HyTSe5U+c2Rc3gpTAImRXnABRhQ8/mD8L+xfb DnjAuYCuJexK98enYWgEgmwMizWIX6ROPmj7RA917FE6/ADM9jpd6f7o3YNkAgoGrLri RTAMwYzByce3eC+a5uPI7+7vmbVcdEE+jrjQo= Are you launching the application after installing the update even if the application wasn't launched? Because apart from the technical issue you are seeing, there is a user experience issue. The usual way of doing this is either to ask the user on the next launch of the application if he wants to update or to automatically update on the next launch. You can also look at a solution like Sparkle. On Mon, Jan 16, 2012 at 11:35 PM, Rakesh Singhal <rakesh.singhal@gmail.com> wrote:
I think this is happening due to launching of GUI (MyApp.app) from daemon. Got following error: com.apple.launchd System: This API can only be used by a process running within an Aqua session. open spawn_via_launchd() failed, errno=5 label=..... path=/Applications/MyApp.app/Contents/MacOS/MyApp flags=0
How can I resolve it?
Thanks & Regards, rksinghal
Subject: Installer failing in 10.7
To: darwin-dev@lists.apple.com Message-ID:
<CACP-XVrX4qvC-SHfQ7c+tw5NK1zNvZpVkAZpthR_pZNxns2OzQ@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I have an installer which installs an app and a daemon. In postinstall script, it runs command "open /Applications/MyApp.app" and it works. If this app is already installed and I install new version, it upgrades smoothly. The daemon is keep polling on server for updated version. If it finds then it downloads the dmg file, mount it and spawns a new process to run the installer. It works properly with 10.5 and 10.6 but gives error on 10.7. The error is "./postinstall: LSOpenURLsWithRole() failed with error -10810 for the file /Applications/MyApp.app". In preupgrade script, I kill both process and remove plist for daemon.
Is this issue due to sandbox or something else? Please let me know if you know how to resolve it.
Thanks in advance.
Regards,
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/dev.iceberg%40gmail.com
This email sent to dev.iceberg@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre