Re: Missing install receipt and script parameter in Snow Leopard
Re: Missing install receipt and script parameter in Snow Leopard
- Subject: Re: Missing install receipt and script parameter in Snow Leopard
- From: Jim Dodd <email@hidden>
- Date: Thu, 15 Oct 2009 08:26:23 -0700 (PDT)
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.
Thank you again, Allen.
Regards,
Jim Dodd
Onset Computer Corporation
----- 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
> http://www.extensis.com/
> phone: 503.274.2020 x116
> email: email@hidden
>
> Font and Creative Assets Management Software. Trusted by Millions.
>
> To learn more about Extensis Solutions, visit:
> http://www.extensis.com/en/solutions/index.jsp
>
> 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:
> com
>
> 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