Re: Installer failing in 10.7
Re: Installer failing in 10.7
- Subject: Re: Installer failing in 10.7
- From: Stephane Sudre <email@hidden>
- Date: Tue, 17 Jan 2012 00:20:34 -0800
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
<email@hidden> 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: email@hidden
>> Message-ID:
>>
>> <email@hidden>
>> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden