  <!-- Edit the file MigApp.xml, replace the section about Firefox with the following -->
  <!-- see http://www.klaus-hartnegg.de/gpo/usmt -->

  <!-- Mozilla Firefox -->
  <component context="UserAndSystem" type="Application">
    <displayName _locID="migapp.firefox">Mozilla Firefox</displayName>
    <environment name="GlobalEnv"/>
    <environment name="GlobalEnvX64"/>
    <role role="Settings">
      <detection>
        <conditions>
          <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Mozilla\Mozilla Firefox *.*\bin [PathToExe]")</condition>
        </conditions>
      </detection>
      <rules context="User">
        <destinationCleanup>
          <objectSet>
            <pattern type="File">%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\* [*]</pattern>
          </objectSet>
        </destinationCleanup>
        <include>
          <objectSet>
            <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\* [*]</pattern>
          </objectSet>
        </include>
        <exclude>
          <objectSet>
            <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\Crash Reports\* [*]</pattern>
          </objectSet>
        </exclude>
        <merge script="MigXmlHelper.SourcePriority()">
          <objectSet>
            <pattern type="File">%CSIDL_APPDATA%\Mozilla\Firefox\* [*]</pattern>
          </objectSet>
        </merge>
      </rules>
    </role>
  </component>

  <!-- Mozilla Thunderbird -->
  <component context="UserAndSystem" type="Application">
    <displayName _locID="migapp.thunderbird">Mozilla Thunderbird</displayName>
    <environment name="GlobalEnv"/>
    <environment name="GlobalEnvX64"/>
    <role role="Settings">
      <detection>
        <conditions>
          <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Mozilla\Mozilla Thunderbird *.*\bin [PathToExe]")</condition>
        </conditions>
      </detection>
      <rules context="User">
        <destinationCleanup>
          <objectSet>
            <pattern type="File">%CSIDL_LOCAL_APPDATA%\Thunderbird\Profiles\* [*]</pattern>
          </objectSet>
        </destinationCleanup>
        <include>
          <objectSet>
            <pattern type="File">%CSIDL_APPDATA%\Thunderbird\* [*]</pattern>
          </objectSet>
        </include>
        <exclude>
          <objectSet>
            <pattern type="File">%CSIDL_APPDATA%\Thunderbird\Crash Reports\* [*]</pattern>
          </objectSet>
        </exclude>
        <merge script="MigXmlHelper.SourcePriority()">
          <objectSet>
            <pattern type="File">%CSIDL_APPDATA%\Thunderbird\* [*]</pattern>
          </objectSet>
        </merge>
      </rules>
    </role>
  </component>
