Re: Required Packages in Metapackage
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com On 29/11/2005, at 7:07 AM, robert.maggi@kodak.com wrote: In the Info.plist for each .pkg file, make sure you have: <key>IFPkgFlagIsRequired</key> <true/> Cheers, Tobias Peciva Pharos Systems _______________________________________________ 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: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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. 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Tobias Peciva