Re: Installing different versions of a .pkg based on OS version
Re: Installing different versions of a .pkg based on OS version
- Subject: Re: Installing different versions of a .pkg based on OS version
- From: Rusty Zink Myers <email@hidden>
- Date: Wed, 14 Jan 2009 15:46:21 -0500
On Jan 14, 2009, at 3:28 PM, Dan Wilson wrote: I'm trying to build a metapackage that installs version A of a component on Tiger, and version B of the same component on Leopard. After setting the OS version requirements on each component, everything seems to work properly, but PackageMaker seems to require that each package has a different package identifier, even if the package version is different. If I manually edit the identifiers to be the same, opening the metapackage causes Installer to return an error ("Operation could not be completed. com.apple.installer.pagecontroller error -1").
Is there a way to accomplish what I'm trying to do? After a successful install, the package receipt has the package identifier shown in PackageMaker, which I expect will cause problems with upgrades.
Thanks,
Dan
PackageMaker 3.0.1
How about install both and remove the one that isn't needed? Use a postflight script that determines OS version and deletes appropriate files? From Bombich set-names.sh script:
defaults read "$1"/System/Library/CoreServices/SystemVersion ProductVersion | awk -F. '{print $2}' Prints middle number in 10.5.6 OS version. For example, 10.5.6 would print 5. 10.4.11 would print 4.
Rusty
|
_______________________________________________
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