• 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: Installing different versions of a .pkg based on OS version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing different versions of a .pkg based on OS version


  • Subject: Re: Installing different versions of a .pkg based on OS version
  • From: Dan Wilson <email@hidden>
  • Date: Wed, 14 Jan 2009 16:53:32 -0600

I don't think installing both and cleaning up unwanted files will solve my problem. Both versions install the same files, just different versions. Also, I can't even get a functional metapackage with two component packages that have the same package identifier (com.company.pkg.product). Having the same identifier in both seems important for upgrade scenarios.

-Dan

On Jan 14, 2009, at 2:39 PM, Rusty Myers wrote:


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
References: 
 >Installing different versions of a .pkg based on OS version (From: Dan Wilson <email@hidden>)

  • Prev by Date: Re: Installing different versions of a .pkg based on OS version
  • Next by Date: RE: PackageMaker install/upgrade on 10.4 vs 10.5
  • Previous by thread: Re: Installing different versions of a .pkg based on OS version
  • Next by thread: [Regression?] distribution vs Info.plist
  • Index(es):
    • Date
    • Thread