It's actually simpler than that:
If you change the name of the package to 'com.softarch.flashauthority.userguideen.pkg', that will be the name of your receipt.
In Iceberg, there's a field (the first one under Settings, if I remember correctly) that determines the name of the package. I don't know Package Maker but it's probably similar in this respect. If it's not, simply rename the package by hand. Might be a reason to check out Iceberg, which I highly recommend.
It's not standard practice to name packages this way, however. Why not just give it a slightly more descriptive name?
If you are concerned about your uninstaller properly identifying the receipt, you could include a script to read and verify the contents of the info.plist file in the package first.
You can read this file using 'defaults':
defaults read "$3"/Library/Receipts/userguideen.pkg/Contents/Info
(Leave off the .plist of the file name. 'defaults' assumes this.)
Hope this is helpful.
Cheers,
Michael
Message: 1 Date: Thu, 12 Jun 2008 15:27:56 -0700 From: Ron Aldrich <email@hidden> Subject: Re: Changing the installer reciept name To: iceberg <email@hidden> Cc: email@hidden Message-ID: <email@hidden">email@hidden> Content-Type: text/plain; charset="us-ascii"
On Jun 9, 2008, at 10:22 PM, iceberg wrote:
Is it possible to change the installer reciept names which are
generated by Package Maker when building a distribution package?
I have a package which installs the user's guide, named "UserGuide-
EN". The package identifier that was created by Package Maker for it
was "com.softarch.flashauthority.userguideen.pkg".
The reciept that is created when the package is installed is
"userguideen.pkg", which seems a bit too "vanilla".
I'd like my reciepts to use the entire package identifier (i.e.
com.softarch.flashauthority.userguideen.pkg) so that when my
uninstaller deletes them, it knows it's getting the right one.
Any suggestions?
Change the name of your package?
"userguideen.pkg" is probably the name of your package.
From what I can see, there is no package name as such, at least not one that's editable.
-------------- next part -------------- A non-text attachment was scrubbed... Name: Picture-9.jpg Type: image/jpeg Size: 15708 bytes Desc: not available Url : http://lists.apple.com/pipermail/installer-dev/attachments/20080612/d7dd7d07/Picture-9.jpg -------------- next part --------------
Looking inside the metapackage, there is indeed a package named userguideen.pkg.
I tried changing com.softarch.flashauthority.userguideen.pkg to comsoftarchflashauthorityuserguideen.pkg, to see if that would solve the problem. It would appear that the package identifier is not being used to generate the package name (which seems a bit counterintuitive - what's it for, if not the name?)
So, I'm guessing that PackageMaker is generating its package names using the last segment of the install path, which would be bad, because it doesn't associate a namespace with it.
Thanks for your time,
Ron Aldrich Software Architects, Inc.
|