<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
    <title>ClamXAV Uninstaller</title>
    <background file="Background.png" mime-type="image/png"/>
    <pkg-ref id="uk.co.canimaansoftware.clamxav-uninstaller">
        <bundle-version/>
    </pkg-ref>
    <options customize="never" require-scripts="false"/>
    <choices-outline>
        <line choice="default">
            <line choice="uk.co.canimaansoftware.clamxav-uninstaller"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="uk.co.canimaansoftware.clamxav-uninstaller" visible="false">
        <pkg-ref id="uk.co.canimaansoftware.clamxav-uninstaller"/>
    </choice>
    <pkg-ref id="uk.co.canimaansoftware.clamxav-uninstaller" version="3" onConclusion="none" installKBytes="0">#engine.pkg</pkg-ref>
    <welcome file="Welcome.rtf"/>
    <conclusion file="Finished.txt" mime-type="text/plain"/>
    <allowed-os-versions>
        <os-version min="10.6.8"/>
    </allowed-os-versions>
    <volume-check script="volume_check()"/>
    <script><![CDATA[

		function volume_check () {
			if ( my.target.mountpoint == "/" ) {
				return true
			}
			else{
				// need to set error type
				my.result.type = "Fatal"
				my.result.message = "Removal can only be performed on the startup disk."
				return false
			}
		}

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