• 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
Preinstall/Postinstall actions not created using CLI packagemaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preinstall/Postinstall actions not created using CLI packagemaker


  • Subject: Preinstall/Postinstall actions not created using CLI packagemaker
  • From: Ben Staveley-Taylor <email@hidden>
  • Date: Wed, 9 Sep 2009 13:04:34 +0100

I am running packagemaker from XCode 3.1.2.

I have created a .pmdoc for my installer, and defined some preinstall and postinstall actions in the Actions tab of the overall Distribution package (not an individual package).

When I build the installer from the GUI, it all works. When I build it from the command line as I would do in a build script, the preinstall and postinstall actions do not run. The difference is that when built from the CLI, the pseudo-packages that contain the actions just aren't being created.

Interactively built from PackageMaker GUI, I get this package structure:

MyInstaller.mpkg
    Contents
        Packages
            MyPackage.pkg
            MyPackagePostflight.pkg
            MyPackagePreflight.pkg

Built from packagemaker CLI tool, I get this package structure:

MyInstaller.mpkg
    Contents
        Packages
            MyPackage.pkg

My packagemaker command line is:

packagemaker --doc "<path to MyInstaller.pmdoc>" \
	--out "<path to MyInstaller.mpkg>" \
	--id com.mycompany.myproduct.pkg \
	--verbose

Has anybody else come across this? What's the vital command line parameter I am missing?

Thanks

Ben Staveley-Taylor
Oracle

_______________________________________________
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


  • Prev by Date: Re: How to localize distribution package's requirements message
  • Next by Date: Re: Meta Package in 10.5 to support 10.3 problem
  • Previous by thread: Signed install packages & signing CA certs
  • Next by thread: Installer fails under 10.6
  • Index(es):
    • Date
    • Thread