Re: Package maker won't run script
site_archiver@lists.apple.com Delivered-To: Installer-dev@lists.apple.com Theodore, You have two options. 1) create a symlink ln -s ./preinstall ./preupgrade 2) Use preflight script I've tried to get package maker to run a script. If I run my preinstall script from the terminal, it works. Why??? It's like the installer is ignoring the script. I'm running OSX 10.4, PackageMaker 2.0. -- http://elfdata.com/plugin/ _______________________________________________ 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/ryanc%40apple.com _______________________________________________ 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... 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. 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 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. 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! If I go to the terminal and try running the preinstall script, it runs just fine. 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. 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? This email sent to ryanc@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Christopher Ryan