xcode - How to combine two package installer files (PKG) to one big combined installer file? -


how combine 2 package installer files (pkg) 1 big combined installer file? using package installer?

you can use productbuild wrap several "component" packages 1 "product archive". example, can this:

productbuild --resource ./resource_folder --package-path package1.pkg --package-path package2.pkg --distribution distribution.xml combine_package.pkg 

productbuild not combine 2 packages together, gives chance add more customizations product package. instance, can add welcome screen , license page. can give user choice select packages install. need provide "distribution" xml file looks following:

<?xml version="1.0" encoding="utf-8" standalone="no"?> <installer-gui-script minspecversion="2">     <title>my installer</title>     <welcome file="welcome.html"/>     <readme file="readme.html" />     <license file="license.html" />     <background file="background.png" alignment="bottomleft" mime-type="image/png" scaling="proportional"/>     <conclusion file="conclusion.html" />     <options customize="allow" require-scripts="false"/>     <choices-outline>         <line choice="com.mycorp.package1"/>         <line choice="com.mycorp.package1"/>     </choices-outline>     <choice id="com.mycorp.package1" title="package 1" customlocation="/library">         <pkg-ref id="com.mycorp.package1">package1.pkg</pkg-ref>     </choice>     <choice id="com.mycorp.package" title="package 1" customlocation="/library">         <pkg-ref id="com.mycorp.package2">package2.pkg</pkg-ref>     </choice> </installer-gui-script> 

and put resource html files under folder specified --resource flag.

please visit https://developer.apple.com/library/mac/documentation/developertools/reference/distributiondefinitionref/chapters/distribution_xml_ref.html see detailed reference of how write distribution.xml.


Comments