• 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
Re: Required Packages in Metapackage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Required Packages in Metapackage


  • Subject: Re: Required Packages in Metapackage
  • From: Tobias Peciva <email@hidden>
  • Date: Tue, 29 Nov 2005 09:21:08 +1300

On 29/11/2005, at 7:07 AM, email@hidden wrote:

I am creating a CUPS printer driver and need to put the driver in / Library/Printers/Kodak/... and its PPD file in /Library/Printers/ PPDs/Contents/Resources/en.lproj. While I currently move everything to the Kodak folder and then run a postflight script to copy the PPD file where it belongs, this seems like a good place to use a metapackage file (10.3.9 or later, so dist files need not apply). I can create the two .pkg files, and I can create a metapackage file that includes the two .pkg files (both with the Required attribute), but the .mpkg file allows the user to deselect either (or both) packages after clicking the Customize button during installation. While I don't mind them seeing there are two packages, I need both be installed for the driver to work.

In the Info.plist for each .pkg file, make sure you have:

	<key>IFPkgFlagIsRequired</key>
	<true/>

If this is set, the user will not be able to uncheck your packages. The only exception is if a package has already been installed on the target machine, in which case it can be unchecked. But of course if the package is already installed, this doesn't actually matter: The installer would skip it anyway.

Note that you could also place all files in the same .pkg file (no .mpkg required), set the default location to "/", the relocatable flag to "false" and just make sure that your package root matches the directory structure you want on disk. If you don't specifically need the user to be able to select which packages to install, this is probably preferable.

Cheers,
Tobias Peciva
Pharos Systems

_______________________________________________
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: Required Packages in Metapackage
      • From: "Perbix, Michael" <email@hidden>
References: 
 >Required Packages in Metapackage (From: email@hidden)

  • Prev by Date: Required Packages in Metapackage
  • Next by Date: Re: Required Packages in Metapackage
  • Previous by thread: Required Packages in Metapackage
  • Next by thread: Re: Required Packages in Metapackage
  • Index(es):
    • Date
    • Thread