site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AcmBRU6J8F4sHi3cRvSyn+1DxQ8igwAFKpOw Thread-topic: One Package, 2 platforms Something like this should work: <?xml version="1.0" encoding="utf-8"?> <installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.1" authoringToolBuild="172"> <title>Title</title> <options customize="allow" allow-external-scripts="no"/> <script type="text/javascript"> function check_osver(osver) { var myVer = System.version['ProductVersion']; if(check_version(myVer, osver)) return false; else return true; } function is_higher(ver1, ver2) { ver1 = ver1.split("."); ver2 = ver2.split("."); for(var i=0;i<2;i++) { if(parseInt(ver1[i]) > parseInt(ver2[i])) { return true; } else if(parseInt(ver1[i]) < parseInt(ver2[i])) { return false; } } return false; } </script> <choices-outline> <line choice="choice0" /> <line choice="choice1" /> </choices-outline> <choice id="choice0" title="Package 10.5" description="This package is for 10.5 only." start_visible="check_osver('10.5')" start_selected="check_osver('10.5')"> <pkg-ref id="com.smarttech.notebook10" /> </choice> <choice id="choice1" title="Package 10.4" description="This package is for 10.4 only." start_visible="check_osver('10.4')" start_selected="check_osver('10.4')"> <pkg-ref id="com.smarttech.notebookTools" /> </choice> <pkg-ref id="com.test.pkg" installKBytes="126656" version="10.0.246.1" auth="Root">file:./Contents/Packages/10.5.pkg</pkg-ref> <pkg-ref id="com.test.pkg" installKBytes="40576" version="10.0.241.1" auth="Root">file:./Contents/Packages/10.4.pkg</pkg-ref> </installer-script> I have not tested this though but should get you moving in the right direction (this is a distribution.dist file.) -----Original Message----- From: installer-dev-bounces+adampeck=smarttech.com@lists.apple.com [mailto:installer-dev-bounces+adampeck=smarttech.com@lists.apple.com] On Behalf Of Jason Todd Slack-Moehrle Sent: Wednesday, January 28, 2009 5:38 AM To: Pradeep Kumar Udupi Cc: installer-dev@lists.apple.com Subject: Re: One Package, 2 platforms Hi Pradeep, Awesome information, do you have an example on meta packages? I dont quite know what I should about them. Thanks, -Jason On Jan 27, 2009, at 9:37 PM, Pradeep Kumar Udupi wrote:
Hi Jason
You can install the files in a temporary location and then move them to the OS specific location using postinstall or postupgrade scripts. Of course in this case the BOM will not contain the location where the files really end up, but if that's not a problem then the above mentioned method should work.
Another alternative is to create 2 pkgs and then wrap them into a meta package and have the OS based version check in the InstallationCheck script that will block the installation of one pkg or the other depending on the OS the mpkg is installed on.
-- Thanks Pradeep
Hi All,
I want to create a package installer that works on both Tiger and Leopard. My issue is that 10.4 and 10.5 keep system Python files in a different location.
Is it possible to create an installer that can put files in a different location depending upon platform version? I have tried and I am not seeing what I can do.
Thoughts?
Thanks,
-Jason
_______________________________________________ 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/pradeep%40robosofti n.com
This email sent to pradeep@robosoftin.com
_______________________________________________ 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/adampeck%40smarttec h.com This email sent to adampeck@smarttech.com _______________________________________________ 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)
-
Adam Peck