Re: Installer-dev Digest, Vol 39, Issue 19
Re: Installer-dev Digest, Vol 39, Issue 19
- Subject: Re: Installer-dev Digest, Vol 39, Issue 19
- From: patrick machielse <email@hidden>
- Date: Sun, 25 Nov 2007 22:52:29 +0100
Op 25 nov 2007, om 21:04 heeft Stéphane Sudre het volgende geschreven:
The problem I'm having now (only tested on 10.5.1) is that the
Installer doesn't run my scripts. I can see that they are included in
the package, they just never seem to be executed. The same seems to
be
true for the distribution action (get iPhoto and quit it); it never
seems to run.
It could be the usual mistakes with preinstall and postinstall
scripts.
They are only executed when the package is installed for the first
time
on the system (*). If you want this to be run for every installation,
use preflight and postflight (**).
Thank you for pointing me in the right direction! I'm slowly figuring
it out...
If you make a package that is compatible with 10.4 you must indeed use
preflight and postflight, which still run on 10.5. The PackageMaker
3.0 'documentation' seems to suggest otherwise ("Important: In Mac OS
X v10.5 clients, the only install operations available are preinstall
and postinstall"), which put me on the wrong track. According to these
same documents, if scripts are used "Installer also warns users that
it’s about to execute unsecured code when they open the installation
package". This (luckily!) doesn't seem to happen, at least when I run
my installer package. What _does_ happen (and _isn't_ in the
documentation): when I specify a pre- or post install 'action', the
users must authorize as administrator (to be allowed to quit iPhoto,
for heaven's sake). This is not what I want.
All in all a Sunday afternoon wasted with, what should have been, a 5
minute job.
patrick _______________________________________________
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