<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.5" authoringToolBuild="196.1">
    <title>Magican</title>
    <options customize="never" allow-external-scripts="no"/>
    <domains enable_localSystem="true"/>
    <installation-check script="pm_install_check();"/>
    <volume-check script="pm_volume_check();"/>
    <script>function pm_volume_check() {
  if(!(my.target.availableKilobytes >= 30 * 1024 * 1024)) {
    my.result.title = 'Failure';
    my.result.message = 'No enough disk space left for installing Magican. Make sure you have more than 30MB disk space.';
    my.result.type = 'Fatal';
    return false;
  }
  return true;
}


function pm_install_check() {
  if(!(/* >= */ system.compareVersions(system.version.ProductVersion, '10.6.0') >= 0)) {
    my.result.title = 'Failure';
    my.result.message = 'Magican only support Snow Leopard and Lion version.';
    my.result.type = 'Fatal';
    return false;
  }
  if(!(system.sysctl('hw.cpu64bit_capable') >= '1')) {
    my.result.title = 'Failure';
    my.result.message = 'Magican only supports 64-bit arch.';
    my.result.type = 'Fatal';
    return false;
  }
  return true;
}
</script>
    <background file="background" alignment="center" scaling="tofit"/>
    <welcome language="en" mime-type="text/rtf"><![CDATA[{\rtf1\ansi\ansicpg936\cocoartf1138\cocoasubrtf510
{\fonttbl\f0\fnil\fcharset0 LucidaGrande;}
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural

\f0\fs26 \cf0 You will be guided through the steps necessary to install this software.}]]></welcome>
    <welcome language="jp" mime-type="text/rtf"><![CDATA[{\rtf1\ansi\ansicpg936\cocoartf1138\cocoasubrtf510
{\fonttbl\f0\fnil\fcharset134 STHeitiSC-Light;\f1\fnil\fcharset0 LucidaGrande;}
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural

\f0\fs26 \cf0 \'a4\'b3\'a4\'ce\'a5\'bd\'a5\'d5\'a5\'c8\'a5\'a6\'a5\'a7\'a5\'a2\'a4\'f2\'a5\'a4\'a5\'f3\'a5\'b9\'a5\'c8\'a9\'60\'a5\'eb\'a4\'b9\'a4\'eb\'a4\'bf\'a4\'e1\'a4\'ce\'b1\'d8\'d2\'aa\'a4\'ca\'a5\'b9\'a5\'c6\'a5\'c3\'a5\'d7\'a4\'f2\'a4\'b4\'b0\'b8\'c4\'da\'a4\'b7\'a4\'de\'a4\'b9
\f1 .}]]></welcome>
    <license file="License"/>
    <choices-outline>
        <line choice="choice61"/>
        <line choice="choice2"/>
        <line choice="choice8"/>
        <line choice="choice9"/>
        <line choice="choice10"/>
        <line choice="choice40"/>
        <line choice="choice62"/>
    </choices-outline>
    <choice id="choice61" title="Magican Preflight" start_visible="false">
        <pkg-ref id="com.magican.magican.preflight.pkg"/>
    </choice>
    <choice id="choice2" title="Daemon">
        <pkg-ref id="com.magican.daemon.pkg"/>
    </choice>
    <choice id="choice8" title="Plist">
        <pkg-ref id="com.magican.castleplist.pkg"/>
    </choice>
    <choice id="choice9" title="ditto">
        <pkg-ref id="com.magican.ditto.pkg"/>
    </choice>
    <choice id="choice10" title="Update">
        <pkg-ref id="com.magican.magican.update.pkg"/>
    </choice>
    <choice id="choice40" title="Magican">
        <pkg-ref id="com.magican.magican.castle.pkg"/>
    </choice>
    <choice id="choice62" title="Magican Postflight" start_visible="false">
        <pkg-ref id="com.magican.magican.postflight.pkg"/>
    </choice>
    <pkg-ref id="com.magican.magican.preflight.pkg" installKBytes="0" version="1.0" auth="Root">#magicanPreflight.pkg</pkg-ref>
    <pkg-ref id="com.magican.daemon.pkg" installKBytes="212" version="1.0" auth="Root">#mcdaemon.pkg</pkg-ref>
    <pkg-ref id="com.magican.castleplist.pkg" installKBytes="4" version="1.0" auth="Root">#commagicancastle.pkg</pkg-ref>
    <pkg-ref id="com.magican.ditto.pkg" installKBytes="68" version="1.0" auth="Root">#ditto.pkg</pkg-ref>
    <pkg-ref id="com.magican.magican.update.pkg" installKBytes="120" version="1.0" auth="Root">#magicanupdate.pkg</pkg-ref>
    <pkg-ref id="com.magican.magican.castle.pkg" installKBytes="30172" version="1.0" auth="Root">#magican.pkg</pkg-ref>
    <pkg-ref id="com.magican.magican.postflight.pkg" installKBytes="0" version="1.0" auth="Root">#magicanPostflight.pkg</pkg-ref>
</installer-script>