• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Struggles with PackageMaker and Iceberg scripts.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Struggles with PackageMaker and Iceberg scripts.


  • Subject: Struggles with PackageMaker and Iceberg scripts.
  • From: Xochitl Lunde <email@hidden>
  • Date: Fri, 12 Mar 2010 14:14:26 -0600


Ok,

I am still having a really hard time figuring out how to use PackageMaker to do what I want.  I have multiple things that need to get installed.

*   The root directory of my program and its contents         /Library/Application Support/        (for now :/ )
*   The launchd plist which starts my daemon        /Library/LaunchDaemons
*   The launchd plist which starts my assistant daemon        /Library/LaunchDaemons
*   The launchd plist which starts my launch agent.        /Library/LaunchAgents

I need to run a script before any of these get installed, and then I need to run a script after all of them have been installed.  They are not separate "choices", you have to install all of them.  The part of the packagemaker GUI that lets me define scripts is setup on the component.   I cannot figure out how to have these scripts defined for the "choice" or for the entire package and not on the components.  As soon as I add 2 components to my choice, PackageMaker changes and says I am now building a distribution.  Even if I remove everything from the package, it does not go back to saying I'm making a "Package" instead of a "Distribution".  Why does it do this?

When I use Iceberg to make the same package, I can define preflight/preinstall/postinstall/postflight really easily.  How do I do this using PackageMaker?  I want to make sure that my preinstall is run before any component is installed, and that my postinstall is run after all components are installed.

Iceberg says I can add additional components, so I add a 'VolumeCheck' script, but it looks like this never gets executed even though it's part of my package.  I have added a VolumeCheck script that does nothing except exit with a value of 112 and my install doesn't fail.  I am guessing the script never gets run?  I tried to get a correct VolumeCheck script and strings using the info from http://www.peelman.us/tech/apple-packages/ .

Thanks,
Xo
 _______________________________________________
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

  • Follow-Ups:
    • Re: Struggles with PackageMaker and Iceberg scripts.
      • From: Nick Peelman <email@hidden>
  • Prev by Date: Re: Build metapackages from the command line with PackageMaker 3
  • Next by Date: Re: Struggles with PackageMaker and Iceberg scripts.
  • Previous by thread: Re: Explaining why install failed.
  • Next by thread: Re: Struggles with PackageMaker and Iceberg scripts.
  • Index(es):
    • Date
    • Thread