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

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


  • Subject: Re: How to launch an installer(.pkg) programmatically in cocoa?
  • From: Julio Cesar Silva dos Santos <email@hidden>
  • Date: Tue, 27 Feb 2007 22:37:16 -0300

This code will never work indeed. Package Maker files are not applications, they should be open with Installer (/Applications/ Utilities/Installer), probably using a code like this:

[NSWorkspace openFile:@"your_file.pkg" withApplication:@"/ Applications/Utilities/Installer"];


Julio Cesar Silva dos Santos email@hidden Skype: jcssantos01 Blogjective-C http://www.jcs.santos.nom.br/wp FetchYourLyrics http://www.jcs.santos.nom.br/fyl/fyl.html


On 27/02/2007, at 22:08, Jerry wrote:

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


References: 
 >How to launch an installer(.pkg) programmatically in cocoa? (From: "Jerry" <email@hidden>)

  • Prev by Date: How to launch an installer(.pkg) programmatically in cocoa?
  • Next by Date: Re: An idea about desktop amusing
  • Previous by thread: How to launch an installer(.pkg) programmatically in cocoa?
  • Next by thread: NSTextView Containers and Coordinates
  • Index(es):
    • Date
    • Thread