Closed poundbangbash closed 6 years ago
Documented at https://managingosx.wordpress.com/2017/11/17/customized-high-sierra-install-issues-and-workarounds/ distribution-style packages need to have a unique product id included in the distribution file for it to work with startosinstall's --installpackage option. Without a product id the package is not included in the output of that tool.
startosinstall
--installpackage
This FR is to ask to include a product ID when building a distribution pkg.
Example: Add <product id="com.foo.bar.pkg" version="1.0"/> to the distribution. This is done as part of the productbuild binary as productbuild --identifier com.foo.bar.pkg.
<product id="com.foo.bar.pkg" version="1.0"/>
productbuild
productbuild --identifier com.foo.bar.pkg
<?xml version="1.0" encoding="utf-8"?> <installer-gui-script minSpecVersion="1"> <pkg-ref id="com.foo.bar.pkg"> <bundle-version/> </pkg-ref> <options customize="never" require-scripts="false"/> <choices-outline> <line choice="default"> <line choice="com.foo.bar.pkg"/> </line> </choices-outline> <choice id="default"/> <choice id="com.foo.bar.pkg" visible="false"> <pkg-ref id="com.foo.bar.pkg"/> </choice> <pkg-ref id="com.foo.bar.pkg" version="1.0" onConclusion="none" installKBytes=“3">#FooBar.pkg</pkg-ref> <product id="com.foo.bar.pkg" version="1.0"/> </installer-gui-script>
Wrong repo. Closing.
Documented at https://managingosx.wordpress.com/2017/11/17/customized-high-sierra-install-issues-and-workarounds/ distribution-style packages need to have a unique product id included in the distribution file for it to work with
startosinstall
's--installpackage
option. Without a product id the package is not included in the output of that tool.This FR is to ask to include a product ID when building a distribution pkg.
Example: Add
<product id="com.foo.bar.pkg" version="1.0"/>
to the distribution. This is done as part of theproductbuild
binary asproductbuild --identifier com.foo.bar.pkg
.