Re: How to launch an installer(.pkg) programmatically in cocoa?
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