Re: Required Packages in Metapackage
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AcX0W/UGM2llK2BPEdq74QANk3Ch3A== Thread-topic: Required Packages in Metapackage User-agent: Microsoft-Entourage/11.2.1.051004 Except there is some known problems with doing this and using ROOT authentication where the priv's of the directory paths to your items being installed get messed up. I have come across this many times....the recommended way to to do as suggested and create a separate package for each set of items that need to be installed at a given location, and make sure the root is set that folder, then combine them into a Meta-Package. At least, that is why my research and info from Apple Support has come up with. -Mike On 11/28/05 3:21 PM, "Tobias Peciva" <peciva@pharos.co.nz> wrote:
On 29/11/2005, at 7:07 AM, robert.maggi@kodak.com 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/perbix%40lmsd.org
This email sent to perbix@lmsd.org
_______________________________________________ Michael Perbix Lower Merion School District Telecommunications Specialist (610) 645-1964 - Work (610) 896-2019 - Fax _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Perbix, Michael