Re: Package maker won't run script
Re: Package maker won't run script
- Subject: Re: Package maker won't run script
- From: Christopher Ryan <email@hidden>
- Date: Wed, 2 Nov 2005 18:57:55 -0800
Theodore,
One of the gotchas with these scripts is that there is a different
script for upgrades then there is for installs. What this means is
that if you try the package once, then the next time you install it,
it will be an upgrade and the preupgrade script will be run instead.
You have two options.
1) create a symlink ln -s ./preinstall ./preupgrade
2) Use preflight script
A preflight script runs for install and upgrade and runs before any
packages are installed (if you have 2 packages, the preflight for the
second package runs before the first package installs).
Chris
I've tried to get package maker to run a script.
I set the resources folder to be a folder I've named "Resources".
In that folder is a single script named "preinstall". It has it's
executable bit set. The preinstall script simply creates a file at
the root directory, so that I can verify that it really did
execute. It's a dummy testing script.
If I run my preinstall script from the terminal, it works.
Inside my built package, I see a folder named "Resources". Within
this folder is a script named "preinstall". It's directly within
"Resources", not within any sub-dir.
When I run my package, guess what happens. Well, everything is
installed but the script is not run!
Why???
If I go to the terminal and try running the preinstall script, it
runs just fine.
It's like the installer is ignoring the script.
I'm running OSX 10.4, PackageMaker 2.0.
Unless I can run scripts from PackageMaker, my installer won't be
any good, so I'd have to find some other way to install this app,
because I need to run scripts.
--
http://elfdata.com/plugin/
What does our work achieve, if it's not making the world a happier
place?
http://www.whatnextjournal.co.uk/Pages/Next/Happiness.html
When's the last time you thought deeply about how to improve our
lives?
_______________________________________________
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