rtrouton / First-Boot-Package-Install

MIT License
59 stars 9 forks source link

Distribution packages missing product id, necessary for startosinstall inclusion #5

Closed poundbangbash closed 6 years ago

poundbangbash commented 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.

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.

<?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>
poundbangbash commented 6 years ago

Wrong repo. Closing.