Pacakage maker tricks to include script within the package to run as preflight script.
I have created a package using packagemaker 3.0.4. Included all the SW/HW checks within package using requirements option. Our requirement is to include HW/SW checks along with a script to kill and trash the app from applications before installing. I have been trying to use preflight script along with the package but it was failing. When we create a package with requirements built for Hw/SW checks it creates a distributed package. Distributed packages by default won't allow external scripts to run within the package, You can find it out in the distribution.dist file. Number of attempts to modify the dist.file to allow script to run failed as well. To over come this , I included a Action with in package to Kill the App before installing. When you create a package using a Action, By default it creates a Preflight package within in the original package. I have edited the script within the package to meet the other requirement, which is to trash the app. Package works perfectly with all the requirements we wanted. Below are my questions 1) Anyone ever tried this kind of method? 2) Any suggestions to modify the distributiion.dist to allow external scripts? 3) Is there any kind of bug within packagemaker, which does not allow external script to run? Since the Packagemaker documentation is so poorly documented I'm not finding the answers to over come the obstacles which we faced. Let me know if any one ever tried to achieve the requirements in the way i have done. Thanks, Vishnu _______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
vishnu kulkarni