• 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
How to launch an installer(.pkg) programmatically in cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to launch an installer(.pkg) programmatically in cocoa?


  • Subject: How to launch an installer(.pkg) programmatically in cocoa?
  • From: "Jerry" <email@hidden>
  • Date: Tue, 27 Feb 2007 17:08:48 -0800

Hi,

An installer was created by using Package Maker, and my application will
download the installer and launch it. I tried NSWorkspace to launch the
application, however, it does not work. If I use the same code to launch an
application(.app), it works fine. As long as the file extension is .pkg or
dmg, the code will never work. The console shows the following error
message.

"LSOpenFromURLSpec() returned -10827 for application /MyInstaller.pkg path
(null)."

What does the message mean and is there another way to launch an installer
programmatically in cocoa?

Thanks,
Jerry

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to launch an installer(.pkg) programmatically in cocoa?
      • From: Julio Cesar Silva dos Santos <email@hidden>
  • Prev by Date: Re: API to convert string to number?
  • Next by Date: Re: How to launch an installer(.pkg) programmatically in cocoa?
  • Previous by thread: Re: An idea about desktop amusing
  • Next by thread: Re: How to launch an installer(.pkg) programmatically in cocoa?
  • Index(es):
    • Date
    • Thread