• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Installer failing in 10.7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installer failing in 10.7


  • Subject: Re: Installer failing in 10.7
  • From: Rakesh Singhal <email@hidden>
  • Date: Tue, 17 Jan 2012 14:25:45 +0530

Thanks Stephane. The MyApp is killed in preupgrade script and launching the application from postflight script using open command. I need to upgrade automatically without asking user and run the upgraded application immediately, not to wait for next launch.

Regards,
rksinghal


On Tue, Jan 17, 2012 at 1:50 PM, Stephane Sudre <email@hidden> wrote:
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

References: 
 >Re: Installer failing in 10.7 (From: Rakesh Singhal <email@hidden>)
 >Re: Installer failing in 10.7 (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Installer failing in 10.7
  • Next by Date: Re: Installer failing in 10.7
  • Previous by thread: Re: Installer failing in 10.7
  • Next by thread: Re: Installer failing in 10.7
  • Index(es):
    • Date
    • Thread