Re: Preinstall/Postinstall actions not created using CLI packagemaker
Re: Preinstall/Postinstall actions not created using CLI packagemaker
- Subject: Re: Preinstall/Postinstall actions not created using CLI packagemaker
- From: Paul Forgey <email@hidden>
- Date: Mon, 4 Jan 2010 17:37:03 -0800
Actions do not seem to work with command line built packages in this version of packagemaker (and still happening in XCode 3.2.1).
I, too, would like to know if anybody has found a workaround for this.
On Sep 9, 2009, at 5:04 AM, Ben Staveley-Taylor wrote:
> 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