site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Hi, Kind regards, Ananda Tallur Software engineer Mauna Kea Technologies - France Thank you again, Allen. Regards, Jim Dodd Onset Computer Corporation _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/email@hidden _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... We are facing the same problem here: On Snow Leopard, the preflight and postflight scripts in our packages do not get passed 4 parameters anymore, but only 3, which makes them fail. The first three arguments $1, $2 and $3 are correct and correspond to what is described in the following documentation: http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptu... $1: Full path to the installation package the Installer application is processing. $2: Full path to the installation destination. $3: Installation volume (or mountpoint) to receive the payload. But $4, that normally contains the system root folder, i.e. "/", according to the same documentation, is missing. We have issued an Apple Bug Report for this, that is #7364925, and the problem is not solved in 10.6.2. Thank you, Allen. Not only did they move the receipts folder, they've changed what is saved there. No longer is the PKG files saved there but now there are two different files. A BOM file (looks like the BOM from the installer package) and a PLIST file with information about when, where and what was installed. So that's why I could never find it when I searched. You saved me a lot of trouble. And by removing those files, I was able to test the difference between install and upgrade scripts. Here's what I found. The preinstall, postinstall and postupgrade scripts only receive three parameters from the installer under Snow Leopard. The preupgrade script receives four parameters from the installer just as all scripts did in previous releases of OS X. I don't know whether the third parameter (the installation volume or mountpoint to receive the payload) or fourth parameter (root directory of the system) are missing from the calls because in every case I've seen, they are both just "/". Perhaps Apple would like to comment on which one is missing and why we wouldn't need that information. I am amazed they would just change the number of parameters like that. I will be entering this as a bug at bugreporter.apple.com. ----- Original Message ----
From: "Riffel, Allen" <email@hidden>
To: Jim Dodd <email@hidden>; email@hidden
Sent: Thu, October 15, 2009 10:41:14 AM
Subject: RE: Missing install receipt and script parameter in Snow Leopard
In Snow Leopard they were nice enough to move the receipts folder to:
/private/var/db. Also, the receipts folder in that directory is all
named with lower case characters: "receipts".
Allen Riffel
QA Engineer
Extensis
phone: 503.274.2020 x116
email: email@hidden
Font and Creative Assets Management Software. Trusted by Millions.
To learn more about Extensis Solutions, visit:
Notice: This communication may contain privileged or other confidential
information. If you are not the intended recipient, or believe that you
have received this communication in error, please do not print, copy,
retransmit, disseminate, or otherwise use the information. Also, please
indicate to the sender that you have received this email in error, and
delete the copy you received. Thank you.
-----Original Message-----
From: installer-dev-bounces+ariffel=email@hidden
[mailto:installer-dev-bounces+ariffel=email@hidden] On
Behalf Of Jim Dodd
Sent: Thursday, October 15, 2009 07:31
To: email@hidden
Subject: Missing install receipt and script parameter in Snow Leopard
I have an installer package that runs on both Leopard and Snow Leopard
successfully. There are three problems, though:
1) For Snow Leopard, I had to modify our postupgrade script to deal with
a missing parameter passed to the scripts by the Installer.app. I do not
know if it is the third or the fourth parameter that is missing. All I
know is they have been there in all other versions of OS X and now they
are not. There are four parameters passed to the preupgrade script.
Problem 3) below explains why I can't verify if the postinstall script
has the same problem.
2) For Snow Leopard, I am not seeing a receipt in the /Library/ Receipts
folder after the install script runs successfully.
3) For Snow Leopard, whether I remove old copies of our application
before installing or not, I always see the preupgrade and postupgrade
scripts run. I never see the preinstall and postinstall scripts run.
Since I can't find a receipt, I can't remove that for testing.
Are these known problems? I am willing to enter bug reports if these are
real problems but I don't want to raise a false alarm if I'm just doing
something stupid. Is there now a "Use Receipt" flag I'm missing from
PackageMaker or something like that?
I have attempted to look through the list archives of this group and I
find nothing about these problems other than my original request for
information about the missing script parameter.
Thank you,
Jim Dodd
Onset Computer Corporation
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/installer-dev/ariffel%40extensis .
com
This email sent to email@hidden This email sent to email@hidden
This email sent to site_archiver@lists.apple.com