<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-script minSpecVersion="1.000000" authoringTool="" authoringToolVersion="" authoringToolBuild="">
    <title>GlobalProtect</title>
    <options customize="always" allow-external-scripts="no"/>
    <domains enable_localSystem="true"/>
    <script>
function pm_uninstallnetconnectid_selected() {
  result = true;
  result = result &amp;&amp; (system.files.fileExistsAtPath(my.target.mountpoint + '/usr/local/PaloAltoNetworks/PanService/PanService') == true);
  return result;
}


function pm_uninstallnetconnectid_hidden() {
  result = true;
  result = result &amp;&amp; !(system.files.fileExistsAtPath(my.target.mountpoint + '/usr/local/PaloAltoNetworks/PanService/PanService') == true);
  return result;
}


function pm_uninstallnetconnectid_enabled() {
  result = true;
  result = result &amp;&amp; (system.files.fileExistsAtPath(my.target.mountpoint + '/usr/local/PaloAltoNetworks/PanService/PanService') == true);
  return result;
}</script>
    <choices-outline>
        <line choice="globalprotectid"/>
        <line choice="uninstallnetconnectid"/>
        <line choice="uninstallglobalprotectid"/>
    </choices-outline>
    <choice id="globalprotectid" title="GlobalProtect" tooltip="Install GlobalProtect" description="Select this to install GlobalProtect in your computer.">
        <pkg-ref id="com.paloaltonetworks.globalprotect.pkg"/>
    </choice>
    <choice id="uninstallnetconnectid" title="Uninstall NetConnect" tooltip="Uninstall NetConnect" description="Select this to uninstall NetConnect from your computer." selected="pm_uninstallnetconnectid_selected()" enabled="pm_uninstallnetconnectid_enabled()" visible="!pm_uninstallnetconnectid_hidden()">
        <pkg-ref id="com.paloaltonetworks.globalprotect.UninstallNC.pkg"/>
    </choice>
    <choice id="uninstallglobalprotectid" title="Uninstall GlobalProtect" tooltip="Uninstall GlobalProtect" description="Select this to uninstall GlobalProtect from your computer." start_selected="false">
        <pkg-ref id="com.paloaltonetworks.globalprotect.dummy.pkg"/>
    </choice>
    <pkg-ref id="com.paloaltonetworks.globalprotect.pkg" installKBytes="14672" version="1.0" auth="Root">#globalprotect.pkg</pkg-ref>
    <pkg-ref id="com.paloaltonetworks.globalprotect.pkg">
            <bundle id="com.paloaltonetworks.GlobalProtect"/>
    </pkg-ref>
    <pkg-ref id="com.paloaltonetworks.globalprotect.UninstallNC.pkg" installKBytes="4" version="1.0" auth="Root">#uninstallnetconnect.pkg</pkg-ref>
    <pkg-ref id="com.paloaltonetworks.globalprotect.dummy.pkg" installKBytes="4" version="1.0" auth="Root">#dummy.pkg</pkg-ref>
    <locator>
        <search id="pkmktoken6-1" type="component">
            <bundle CFBundleIdentifier="com.paloaltonetworks.GlobalProtect" path="/Applications/GlobalProtect.app"/>
        </search>
        <search id="pkmktoken6-0" type="script" script="pkmktoken6_combined()">
            <script>
function pkmktoken6_combined() {
	function pkmk_add_results_to_array(results, array) {
		for(i = 0; i &lt; results.length; i++)
			array.push(results[i]);
	}
	var result = new Array();
	var search;
	search = my.search.results['pkmktoken6-1'];
	if(search) pkmk_add_results_to_array(search, result);
	return result;
}
</script>
        </search>
        <search type="script" id="pkmktoken6" script="pkmktoken6_final()">
            <script>
function pkmktoken6_final() {
	var combined = my.search.results['pkmktoken6-0'];
	return combined;
}
</script>
        </search>
    </locator>
</installer-script>
