<?xml version="1.0"?>
<installer-gui-script minSpecVersion="1">
    <title>Cinc Workstation</title>
    <background file="background.png" alignment="bottomleft" mime-type="image/png"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <license file="license.html" mime-type="text/html"/>
    <!-- Generated by productbuild - - synthesize -->
    <pkg-ref id="com.cinc-project.pkg.cinc-workstation">
        <bundle-version/>
    </pkg-ref>
    <options customize="never" require-scripts="false" allow-external-scripts="true"/>
    <choices-outline>
        <line choice="default">
            <line choice="com.cinc-project.pkg.cinc-workstation"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.cinc-project.pkg.cinc-workstation" visible="false">
        <pkg-ref id="com.cinc-project.pkg.cinc-workstation"/>
    </choice>
    <pkg-ref id="com.cinc-project.pkg.cinc-workstation" version="21.3.346" onConclusion="none" installKBytes="466959">#cinc-workstation-core.pkg</pkg-ref>
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
    <installation-check script="chefdk_check()"/>
    <script><![CDATA[

function chefdk_check () {
    // Check if ChefDK is installed.
    if (! system.run('/usr/sbin/pkgutil', '--pkgs=com.getchef.pkg.chefdk')) {
        // need to set error type
        my.result.type = "Warning"
        my.result.title = "ChefDK Installed"
        my.result.message = "You're using ChefDK. It will be upgraded to Chef Workstation."
        return false
    }
    return true
}

]]></script>
</installer-gui-script>