<?xml version="1.0" encoding="UTF-8"?>
<!--
;    Name      : Office 2007 settings saver 
;    Rewrote By: Morteza Emamipour
;    Date      : 1386-11-26
-->
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/Office2007">

    <library prefix="MigSysHelper">MigSys.dll</library>

        <_locDefinition>
        <_locDefault _loc="locNone"/>
        <_locTag _loc="locData">displayName</_locTag>
        </_locDefinition>

    <namedElements>
        <!-- Gloabal -->
        <environment name="GlobalEnvX64">
            <conditions>
                <condition>MigXmlHelper.IsNative64Bit()</condition>
            </conditions>
            <variable name="HklmWowSoftware" remap="TRUE">
                <text>HKLM\SOFTWARE\Wow6432Node</text>
            </variable>
        </environment>
        <environment name="GlobalEnv">
            <conditions>
                <condition negation="Yes">MigXmlHelper.IsNative64Bit()</condition>
            </conditions>
            <variable name="HklmWowSoftware" remap="TRUE">
                <text>HKLM\Software</text>
            </variable>
        </environment>

        <environment name="COMMONOFFICEENV">
            <variable name="OFFICEINSTALLPATH">
                <script>MigXmlHelper.GetStringContent("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Common\InstallRoot [Path]")</script>
            </variable>
       </environment>

        <!-- office detects -->
        <detects name="Office">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Common\InstallRoot [Path]")</condition>
            </detect>
        </detects>
        <detects name="Word">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Word\InstallRoot [Path]")</condition>
            </detect>
        </detects>
        <detects name="Access">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Access\InstallRoot [Path]")</condition>
            </detect>
        </detects>
        <detects name="Excel">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Excel\InstallRoot [Path]")</condition>
            </detect>
        </detects>
        <detects name="PowerPoint">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\PowerPoint\InstallRoot [Path]")</condition>
            </detect>
        </detects>
        <detects name="Outlook">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Outlook\InstallRoot [Path]")</condition>
            </detect>
        </detects>
        <detects name="Publisher">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Publisher\InstallRoot [Path]")</condition>
            </detect>
        </detects>
        <detects name="PhotoDraw">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\PhotoDraw\InstallRoot [Path]")</condition>
            </detect>
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("File","%OFFICEINSTALLPATH% [PhotoDrw.exe]")</condition>
            </detect>
        </detects>
         <detects name="Visio">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Visio [CurrentlyRegisteredVersion]")</condition>
            </detect>
        </detects>
		<detects name="Project2007">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\Project\InstallRoot [Path]")</condition>
            </detect>
    	</detects>
        <detects name="OneNote">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Office\%OFFICEVERSION%\OneNote\InstallRoot [Path]")</condition>
            </detect>
        </detects>
        <detects name="ExpressionWeb">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Microsoft\Expression\Web Designer\12.0\InstallRoot [Path]")</condition>
            </detect>
        </detects>

        <!-- For Office SmartTags -->
        <detects name="MicrosoftOutlookEmailRecipientsSmartTags">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{4FFB3E8B-AE75-48F2-BF13-D0D7E93FA8F9}")</condition>
            </detect>
        </detects>
        <detects name="MicrosoftListsSmartTags2007">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{64AB6C69-B40E-40AF-9B7F-F5687B48E2B6}")</condition>
            </detect>
        </detects>
        <detects name="MicrosoftPlaceSmartTags">
            <detect>
                <condition>MigXmlHelper.DoesObjectExist("Registry","HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{87EF1CFE-51CA-4E6B-8C76-E576AA926888}")</condition>
            </detect>
        </detects>

        <rules name="OutlookPstPab" context="User">

            <include>
                <objectSet>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [01020fff]</pattern>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e0324]</pattern>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e6600]</pattern>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e6700]</pattern>
                    <content filter="MigSysHelper.ExtractSingleFileAnsiBin()">
                        <objectSet>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e0324]</pattern>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e6600]</pattern>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e6700]</pattern>
                        </objectSet>
                    </content>
                </objectSet>
            </include>

            <include>
                <objectSet>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001f0324]</pattern>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001f6600]</pattern>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001f6700]</pattern>
                    <content filter="MigSysHelper.ExtractSingleFileUnicodeBin()">
                        <objectSet>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e0324]</pattern>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e6600]</pattern>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e6700]</pattern>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001f0324]</pattern>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001f6600]</pattern>
                            <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001f6700]</pattern>
                        </objectSet>
                    </content>
                </objectSet>
            </include>

            <contentModify script='MigSysHelper.SetPstPathInMapiStruct ()'>
                <objectSet>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [0102*]</pattern>
                </objectSet>
            </contentModify>

            <contentModify script='MigSysHelper.UpdateMvBinaryMapiStruct ()'>
                <objectSet>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [0102*]</pattern>
                </objectSet>
            </contentModify>

            <contentModify script='MigSysHelper.UpdateMvBinaryMapiStruct ()'>
                <objectSet>
                    <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [1102*]</pattern>
                </objectSet>
            </contentModify>

        </rules>

    </namedElements>

    <!-- Microsoft Office 2007 -->
    <component context="UserAndSystem" type="Application">
        <displayName _locID="Office2007.">Microsoft Office 2007</displayName>
        <environment name="GlobalEnv"/>
        <environment name="GlobalEnvX64"/>
        <environment>
            <variable name="OFFICEVERSION">
                <text>12.0</text>
            </variable>
        </environment>
        <role role="Container">
            <detects name="Office" />
            <detects name="Word"/>
            <detects name="PowerPoint"/>
            <detects name="Access"/>
            <detects name="Excel"/>
            <detects name="Outlook"/>
            <detects name="Publisher"/>
            <detects name="Visio"/>
		    <detects name="Project2007"/>
            <detects name="OneNote"/>
            <detects name="ExpressionWeb"/>

            <!-- Office 2007 Common Settings -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.common">Office 2007 Common Settings</displayName>
                <role role="Settings">

                    <!-- For Office 2007 -->
                    <rules>
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\Common\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Shared Tools\* [*]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [MSO3081.acl]</pattern>
                                <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Office\* [*]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Proof\* [*]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Templates\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Shared Tools\Proofing Tools\Custom Dictionaries [*]</pattern>
                                <content filter="MigXmlHelper.ExtractSingleFile(NULL,'%CSIDL_APPDATA%\Microsoft\Proof')">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Shared Tools\Proofing Tools\Custom Dictionaries [*]</pattern>
                                    </objectSet>
                                </content>
                            </objectSet>
                        </include>
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Shortcut Bar [LocalPath]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Internet [LocationOfComponents]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Open Find\* [*]</pattern>
                            </objectSet>
                        </exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Internet\DoNotCheckIfOfficeIsHTMLEditor\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Internet [AllowPNG]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Internet [RelyOnVML]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Internet [SaveNewWebPagesAsWebArchives]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars [BtnSize]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars [Tooltips]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars [AdaptiveMenus]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars [Animation]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars [ShowKbdShortcuts]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars [FontView]</pattern>
                            </objectSet>
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [MSO3081.acl]</pattern>
                                <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Office\* [*]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Proof\* [*]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Templates\* [*]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office Access 2007 -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.access">Microsoft Office Access 2007</displayName>
                <role role="Settings">
                    <detects name="Access"/>
                    <rules>
                        <!--  copy files -->
                        <include>
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [Access11.pip]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\Access\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\CMA\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars\Settings\ [Microsoft Access]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Access\File MRU\* [*]</pattern>
                                <content filter="MigXmlHelper.ExtractSingleFile(NULL,'NULL')">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Access\File MRU\* [*]</pattern>
                                    </objectSet>
                                </content>
                            </objectSet>
                        </include>
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRU1]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRU2]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRU3]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRU4]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRU5]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRU6]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRUFlags1]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRUFlags2]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRUFlags3]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRUFlags4]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRUFlags5]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Settings [MRUFlags6]</pattern>
                            </objectSet>
                        </exclude>
                        <!-- force src -->
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [Access11.pip]</pattern>
                            </objectSet>
                        </merge>
                        <!-- force dest -->
                        <merge script="MigXmlHelper.DestinationPriority()">
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Access\Options [Default Database Directory]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office Excel 2007 -->
            <component  context="User" type="Application">
                <displayName _locID="Office2007.excel">Microsoft Office Excel 2007</displayName>
                <role role="Settings">
                    <detects name="Excel"/>
                    <rules>
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Excel\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars\Settings\ [Microsoft Excel]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Excel\ [EXCEL11.xlb]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office\ [EXCEL11.pip]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Excel\File MRU\* [*]</pattern>
                                <content filter="MigXmlHelper.ExtractSingleFile(NULL,'NULL')">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Excel\File MRU\* [*]</pattern>
                                    </objectSet>
                                </content>
                            </objectSet>
                        </include>
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Excel\Recent Files\* [*]</pattern>
                            </objectSet>
                        </exclude>
                        <merge script="MigXmlHelper.DestinationPriority()">
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Excel\Options\ [AltStartup]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Excel\Options\ [DefaultPath]</pattern>
                            </objectSet>
                        </merge>
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Excel\ [EXCEL11.xlb]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office\ [EXCEL11.pip]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office Outlook 2007 -->
            <component context="UserAndSystem" type="Application">
                <displayName _locID="Office2007.outlook">Microsoft Office Outlook 2007</displayName>
                <role role="Settings">
                    <detects name="Outlook"/>
                    <rules name="OutlookPstPab" />
                    <rules context="User">
                        <!-- addreg -->
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\Outlook\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Outlook\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars\Settings [Microsoft Outlook]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\* [*]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Signatures\* [*]</pattern>
                                <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\FORMS [frmcache.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [outcmd11.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [outcmd.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [views.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [OutlPrint]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office  [MSOut11.pip]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Exchange\* [*]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [*.rwz]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [*.srs]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [*.NK2]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [*.xml]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [*]</pattern>
                                <content filter="MigXmlHelper.ExtractSingleFile(NULL,'%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook')">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Outlook\Journal\* [*]</pattern>
                                    </objectSet>
                                </content>
                                 <content filter="MigXmlHelper.ExtractSingleFile(NULL, NULL)">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001e023d]</pattern>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\* [001f023d]</pattern>
                                    </objectSet>
                                </content>
                              </objectSet>
                        </include>
                        <!-- delreg -->
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Outlook [FirstRunDialog]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Outlook [Machine Name]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\*\0a0d020000000000c000000000000046 [111f031e]</pattern>
                                <pattern type="Registry">HKCU\Identities\* [LDAP Server]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Internet Account Manager\Accounts\* [LDAP Server]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\* [LDAP Server]</pattern>
                            </objectSet>
                        </exclude>
                        <!-- destdelreg -->
                        <destinationCleanup>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\* [Connection Flags]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\* [Connection Type]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\* [Connectoid]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles [DefaultProfile]</pattern>
                            </objectSet>
                        </destinationCleanup>
                        <!-- forcesrcfile -->
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\FORMS [frmcache.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [outcmd11.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [outcmd.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [views.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [MSOut11.pip]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [*.srs]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [*.xml]</pattern>
                            </objectSet>
                        </merge>
                        <!-- Outlook ForceDestFile -->
                        <merge script="MigXmlHelper.DestinationPriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Outlook [*.rwz]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                    <rules context="System">
                        <!-- addreg -->
                        <include>
                            <objectSet>
                                <pattern type="Registry">%HklmWowSoftware%\Clients\Mail\Microsoft Outlook [MSIComponentID]</pattern>
                                <pattern type="Registry">%HklmWowSoftware%\Microsoft\Office\12.0\Outlook\Setup [MailSupport]</pattern>
                            </objectSet>
                        </include>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office PowerPoint 2007 -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.powerpoint">Microsoft Office PowerPoint 2007</displayName>
                <role role="Settings">
                    <detects name="PowerPoint"/>
                    <rules>
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\RecentFolderList [Default]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars\Settings [Microsoft PowerPoint]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\PowerPoint [PPT11.pcb]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [PowerP11.pip]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Powerpoint\File MRU\* [*]</pattern>
                                <content filter="MigXmlHelper.ExtractSingleFile(NULL,'NULL')">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Powerpoint\File MRU\* [*]</pattern>
                                    </objectSet>
                                </content>
                            </objectSet>
                        </include>
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Recent File List\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\RecentFolderList\* [*]</pattern>
                            </objectSet>
                        </exclude>
                        <merge script="MigXmlHelper.DestinationPriority()">
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\RecentFolderList [Default]</pattern>
                            </objectSet>
                        </merge>
                        <destinationCleanup>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Internet [HTMLVersion]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Options [AutoKeyboard Switching]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Options [BackgroundPrint]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Options [DisableNewAnimationUI]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Options [DisablePasswordUI]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Options [MaxNumberDesigns]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Options [Send TrueType fonts as bitmaps]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\PowerPoint\Options [Send printer information to OLE servers]</pattern>
                            </objectSet>
                        </destinationCleanup>
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\PowerPoint [PPT11.pcb]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [PowerP11.pip]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office Publisher 2007 -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.publisher">Microsoft Office Publisher 2007</displayName>
                <role role="Settings">
                    <detects name="Publisher"/>
                    <rules>
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Publisher\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars\Settings [Microsoft Publisher]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [*.acl]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Publisher [pubcmd.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [Publis11.pip]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office\ [*.jsp]</pattern>
                            </objectSet>
                        </include>
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Publisher\Recent File List\* [*]</pattern>
                            </objectSet>
                        </exclude>
                        <destinationCleanup>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Publisher\UserInfo\* [FullName]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Publisher\UserInfo\* [CompanyName]</pattern>
                            </objectSet>
                        </destinationCleanup>
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [*.acl]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Publisher [pubcmd.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [Publis11.pip]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [*.jsp]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office Word 2007 -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.word">Microsoft Office Word 2007</displayName>
                <role role="Settings">
                    <detects name="Word"/>
                    <rules>
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Word\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Common\Toolbars\Settings [Microsoft Word]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Templates [Normal.dot]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [Word11.pip]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [WordMa11.pip]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Word\File MRU\* [*]</pattern>
                                <content filter="MigXmlHelper.ExtractSingleFile(NULL,'NULL')">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Word\File MRU\* [*]</pattern>
                                    </objectSet>
                                </content>
                            </objectSet>
                        </include>
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\12.0\Word\Options [PROGRAMDIR]</pattern>
                            </objectSet>
                        </exclude>
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Templates [Normal.dot]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [Word11.pip]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [WordMa11.pip]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office SmartTags -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.smarttag">Microsoft Office SmartTags</displayName>
                <role role="Container">
                    <detects name="MicrosoftOutlookEmailRecipientsSmartTags" />
                    <detects name="MicrosoftListsSmartTags2007" />
                    <detects name="MicrosoftPlaceSmartTags" />

                    <!-- Microsoft Outlook Email Recipients SmartTags -->
                    <component context="User" type="Application">
                        <displayName _locID="Office2007.emailsmarttag">Microsoft Outlook Email Recipients SmartTags</displayName>
                        <role role="Settings">
                            <detects name="MicrosoftOutlookEmailRecipientsSmartTags" />
                            <rules>
                                <include>
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{4FFB3E8B-AE75-48F2-BF13-D0D7E93FA8F9}\* [*]</pattern>
                                    </objectSet>
                                </include>
                                <destinationCleanup>
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{4FFB3E8B-AE75-48F2-BF13-D0D7E93FA8F9} [*]</pattern>
                                    </objectSet>
                                </destinationCleanup>
                            </rules>
                        </role>
                    </component>

                    <!-- Microsoft Lists SmartTags -->
                    <component context="User" type="Application">
                        <displayName _locID="Office2007.listsmarttag">Microsoft Lists SmartTags</displayName>
                        <role role="Settings">
                            <detects name="MicrosoftListsSmartTags2007" />
                            <rules>
                                <include>
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{64AB6C69-B40E-40AF-9B7F-F5687B48E2B6}\* [*]</pattern>
                                    </objectSet>
                                </include>
                                <destinationCleanup>
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{64AB6C69-B40E-40AF-9B7F-F5687B48E2B6}\* [*]</pattern>
                                    </objectSet>
                                </destinationCleanup>
                            </rules>
                        </role>
                    </component>

                    <!-- Microsoft Place SmartTags -->
                    <component context="User" type="Application">
                        <displayName _locID="Office2007.placesmarttag">Microsoft Place SmartTags</displayName>
                        <role role="Settings">
                            <detects name="MicrosoftPlaceSmartTags" />
                            <rules>
                                <include>
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{87EF1CFE-51CA-4E6B-8C76-E576AA926888}\* [*]</pattern>
                                    </objectSet>
                                </include>
                                <destinationCleanup>
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\Common\Smart Tag\Recognizers\{87EF1CFE-51CA-4E6B-8C76-E576AA926888} [*]</pattern>
                                    </objectSet>
                                </destinationCleanup>
                            </rules>
                        </role>
                    </component>

                </role>
            </component>

       <!-- Microsoft Office Visio 2007 -->
            <component type="Application" context="UserAndSystem">
                <displayName _locID="Office2007.visio2007">Microsoft Office Visio 2007</displayName>
                    <role role="Settings">
                        <detects name="Visio" />
                        <rules context="User">
        		    <include>
        		        <objectSet>
        		            <pattern type="Registry">HKCU\software\Microsoft\Office\%OFFICEVERSION%\Visio\* [*]</pattern>
                                    <pattern type="Registry">HKCU\software\Microsoft\Office\%OFFICEVERSION%\Common\Toolbars\Settings\ [Microsoft Office Visio]</pattern>
        		            <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office\ [Visio12.pip]</pattern>
        		            <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Visio\ [content.dat]</pattern>
                                    <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Visio\Recent Templates\* [*]</pattern>
                                    <content filter="MigXmlHelper.ExtractSingleFile(NULL,'NULL')">
                                        <objectSet>
                                            <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Visio\Recent Templates\* [Template*]</pattern>
                                        </objectSet>
                                    </content>
        		        </objectSet>
        		    </include>
        		    <exclude>
        		        <objectSet>
        		            <pattern type="Registry">HKCU\software\Microsoft\Office\%OFFICEVERSION%\Visio\Application\ [LastFile*]</pattern>
        		            <pattern type="Registry">HKCU\software\Microsoft\Office\%OFFICEVERSION%\Visio\Application\ [MyShapesPath]</pattern>
        		            <pattern type="Registry">HKCU\software\Microsoft\Office\%OFFICEVERSION%\Visio\Application\ [UserDictionaryPath1]</pattern>
        		        </objectSet>
              		    </exclude>
                            <merge script="MigXmlHelper.SourcePriority()">
                                <objectSet>
			            <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office\ [Visio12.pip]</pattern>
		    		<pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Visio\ [content.dat]</pattern>
                                </objectSet>
                            </merge>
                    </rules>
                </role>
            </component>

	    <!-- Microsoft Project 2007 -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.project2007">Microsoft Project 2007</displayName>
                <role role="Settings">
                    <detects name="Project2007" />
                    <rules>
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\MS Project\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Common\Toolbars\Settings [Microsoft Office Project]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [MSProj12.pip]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\MS Project\Recent Templates\* [*]</pattern>
                                <content filter="MigXmlHelper.ExtractSingleFile(NULL,'NULL')">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\MS Project\Recent Templates\* [Template*]</pattern>
                                    </objectSet>
                                </content>
                            </objectSet>
                        </include>
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\MS Project\Recent File List [*]</pattern>
                            </objectSet>
                        </exclude>
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office [MSProj12.pip]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office OneNote 2007 -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.onenote">Microsoft Office OneNote 2007</displayName>
                <role role="Settings">
                    <detects name="OneNote"/>
                    <rules>
                        <destinationCleanup>
                            <objectSet>
                                <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\OneNote\%OFFICEVERSION%\ [OneNoteOfflineCache.onecache]</pattern>
                            </objectSet>
                        </destinationCleanup>
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\OneNote\* [*]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\Common\Toolbars\Settings\ [Microsoft Office OneNote]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office\ [OneNot12.pip]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\OneNote\%OFFICEVERSION%\ [Preferences.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\OneNote\%OFFICEVERSION%\ [Toolbars.dat]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\OneNote\Recent Templates\* [*]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\MS Project\12\* [*]</pattern>
                                <content filter="MigXmlHelper.ExtractSingleFile(NULL,'NULL')">
                                    <objectSet>
                                        <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\OneNote\Recent Templates\* [Template*]</pattern>
                                    </objectSet>
                                </content>
                            </objectSet>
                        </include>
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Office\ [OneNot12.pip]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\OneNote\%OFFICEVERSION% [Preferences.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\OneNote\%OFFICEVERSION% [Toolbars.dat]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\MS Project\12\* [*]</pattern>
                            </objectSet>
                        </merge>
                        <exclude>
                            <objectSet>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\OneNote\General\ [LastMyDocumentsPathUsed]</pattern>
                                <pattern type="Registry">HKCU\Software\Microsoft\Office\%OFFICEVERSION%\OneNote\Options\Paths\ [BackupFolderPath]</pattern>
                            </objectSet>
                        </exclude>
                    </rules>
                </role>
            </component>

            <!-- Microsoft Office Expression Web Designer 2007 -->
            <component context="User" type="Application">
                <displayName _locID="Office2007.ExpressionWeb">Microsoft Office Expression Web Designer 2007</displayName>
                <role role="Settings">
                    <detects name="ExpressionWeb"/>
                    <rules>
                        <destinationCleanup>
                            <objectSet>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Expression\Web Designer\* [*]</pattern>
                            </objectSet>
                        </destinationCleanup>
                        <include>
                            <objectSet>
                                <pattern type="Registry">HKU\S-1-5-21-1659004503-1677128483-839522115-1003\Software\Microsoft\Expression\Web Designer\* [*]</pattern>
                                <pattern type="File">%CSIDL_PROGRAM_FILES%\Microsoft Expression\Web Designer\ [EXPRWD.pip]</pattern>
                                <pattern type="File">%CSIDL_PROGRAM_FILES%\Microsoft Expression\Web Designer\ [FORMATS.INF]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Expression\Web Designer\* [*]</pattern>
                            </objectSet>
                        </include>
                        <merge script="MigXmlHelper.SourcePriority()">
                            <objectSet>
                                <pattern type="Registry">HKU\S-1-5-21-1659004503-1677128483-839522115-1003\Software\Microsoft\Expression\Web Designer\* [*]</pattern>
                                <pattern type="File">%CSIDL_PROGRAM_FILES%\Microsoft Expression\Web Designer\ [EXPRWD.pip]</pattern>
                                <pattern type="File">%CSIDL_PROGRAM_FILES%\Microsoft Expression\Web Designer\ [FORMATS.INF]</pattern>
                                <pattern type="File">%CSIDL_APPDATA%\Microsoft\Expression\Web Designer\* [*]</pattern>
                            </objectSet>
                        </merge>
                    </rules>
                </role>
            </component>

        </role>

    </component>

</migration>

