Re: PackageMaker 3.0/Installer - NSInvalidArgumentException
Re: PackageMaker 3.0/Installer - NSInvalidArgumentException
- Subject: Re: PackageMaker 3.0/Installer - NSInvalidArgumentException
- From: David Wilson <email@hidden>
- Date: Wed, 02 Jan 2008 16:46:09 +1300
Hello again everyone...
I'd like to report some progress on this issue I've been having....
The issue seems to be related to the "identified", where I had
"com.david.USB Missile Launcher NZ"" and this seems to fail because of
the spaces in the file name. I've changed it to
"com.david.USBMissileLauncherNZ" and everything is now behaving like a
well oiled machine.
In PackageMaker...
To change this setting, go to your package and select the Contents
Tab. Click on your Application - this is the line that allows
relocation or downgrade.
At the bottom of the screen click "Relocation" and there is the
identifier for you to change. Note that this screen also seems to
contain the destination name of the installed application.
I have reviewed the PackageMaker User Guide and can not find any
reference to this "Relocation" dialog to explain what is going on.
And I then decided to get smarter and add in some post install stuff
(i.e. show the installed application after installation) But this
again referenced "com.david.USB Missile Launcher NZ" from where I
don't know. So it's all buggered up again. So now I deselected the
options to make the application "relocatable" and now I can install
successfully. And for the record, I changed the "identifier" back in
my application so that it didn't have any spaces in it. But perhaps
the installer is confused because of the older versions that I have on
my hard drive.
- David
On 1/01/2008, at 11:29 PM, David Wilson wrote:
Hi team...
I'm new here... and I hope that this post is appropriate... I've
spent all day (2 days) on this and I don't know where to turn to.
Short story... I'm trying to automate my build process by way of a
shell script. I'm almost there...
When I run my installer package, (it has worked), though now every
time I run it (even after I rebuild it) I get the error below and
the "Install Failed" message.
Jan 1 23:12:31 David-Wilsons-Computer Installer[1366]: Package
Authoring Error: Results of component search (com.david.USB Missile
Launcher NZ) not usable by package.
Jan 1 23:12:34 David-Wilsons-Computer Installer[1366]: An exception
was thrown from the install queue while running IFInstallElement.
NSInvalidArgumentException. *** -[NSFileManager
fileSystemRepresentationWithPath:]: nil or empty path argument.
Jan 1 23:12:34 David-Wilsons-Computer Installer[1366]: Install
failed: The Installer encountered an unknown error that failed the
install. Contact the software manufacturer for assistance.
Jan 1 23:12:34 David-Wilsons-Computer Installer[1366]: Displaying
'Install Failed' UI.
Jan 1 23:12:34 David-Wilsons-Computer Installer[1366]: 'Install
Failed' UI displayed message:'The Installer encountered an unknown
error that failed the install. Contact the software manufacturer for
assistance.'.
I'm running 10.5.1, xcode 3 etc.
I have a folder called "Applications" and a folder containing my
application and support files (read me etc) that I want to install
contained within that.
I have a PackageMaker document (.pmdoc) and use the following to
create the package.
/Developer/usr/bin/packagemaker --doc "$PACKAGEMAKER" --out
"$PACKAGEOUTPUT" --verbose
setfile -a E "$PACKAGEOUTPUT"
So, it's either me, or a bug!
I've done many builds and attempted many installs yesterday/today
(and thus I don't know if I've "corrupted" something on my machine)
It doesn't seem to make any difference if I remove my application
folder from within the Applications folder.. the installer still
fails with the same error.
Sorry it's a bit of a dump and I hope the story is coherent and that
someone knows what's happening here...
- David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-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.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden