home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / WindowsServerTrial / server.iso / sources / envmig.xml < prev    next >
Text File  |  2008-01-19  |  15KB  |  188 lines

  1. <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/oobeupgrade">
  2.  
  3.   <component type="System" context="User">
  4.     <displayName>oobeUpgrade</displayName>
  5.     <paths>
  6.       <path type="File">%WINDIR%\oobeUpgrade</path>
  7.     </paths>
  8.     <role role="Settings">
  9.  
  10.       <rules>
  11.         <detects>
  12.           <detect>
  13.             <condition negation="Yes">MigXmlHelper.IsOSLaterThan("NT","6.0.0.0")</condition>
  14.           </detect>
  15.         </detects>
  16.         <rules>
  17.           <detects>
  18.             <detect>
  19.               <condition negation="Yes">MigXmlHelper.DoesObjectExist("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Music]")</condition>
  20.             </detect>
  21.             <detect>
  22.               <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]")</condition>
  23.             </detect>
  24.           </detects>
  25.           <addObjects>
  26.             <object>
  27.               <location type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Music]</location>
  28.               <attributes>ExpandString</attributes>
  29.               <bytes string="Yes" expand="Yes">%CSIDL_MYMUSIC%</bytes>
  30.             </object>
  31.           </addObjects>
  32.         </rules>
  33.         <rules>
  34.           <detects>
  35.             <detect>
  36.               <condition negation="Yes">MigXmlHelper.DoesObjectExist("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Pictures]")</condition>
  37.             </detect>
  38.             <detect>
  39.               <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]")</condition>
  40.             </detect>
  41.           </detects>
  42.           <addObjects>
  43.             <object>
  44.               <location type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Pictures]</location>
  45.               <attributes>ExpandString</attributes>
  46.               <bytes string="Yes" expand="Yes">%CSIDL_MYPICTURES%</bytes>
  47.             </object>
  48.           </addObjects>
  49.         </rules>
  50.         <rules>
  51.           <detects>
  52.             <detect>
  53.               <condition negation="Yes">MigXmlHelper.DoesObjectExist("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Video]")</condition>
  54.             </detect>
  55.             <detect>
  56.               <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]")</condition>
  57.             </detect>
  58.           </detects>
  59.           <addObjects>
  60.             <object>
  61.               <location type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Video]</location>
  62.               <attributes>ExpandString</attributes>
  63.               <bytes string="Yes" expand="Yes">%CSIDL_MYVIDEO%</bytes>
  64.             </object>
  65.           </addObjects>
  66.         </rules>
  67.       </rules>
  68.  
  69.       <rules>
  70.  
  71.         <include>
  72.           <objectSet>
  73.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]")</condition>
  74.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Personal]</pattern>
  75.           </objectSet>
  76.           <objectSet>
  77.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Music]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Music]")</condition>
  78.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Music]</pattern>
  79.           </objectSet>
  80.           <objectSet>
  81.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Pictures]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Pictures]")</condition>
  82.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Pictures]</pattern>
  83.           </objectSet>
  84.           <objectSet>
  85.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Video]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Video]")</condition>
  86.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [My Video]</pattern>
  87.           </objectSet>
  88.           <objectSet>
  89.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Start Menu]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Start Menu]")</condition>
  90.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Start Menu]</pattern>
  91.           </objectSet>
  92.           <objectSet>
  93.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Programs]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Programs]")</condition>
  94.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Programs]</pattern>
  95.           </objectSet>
  96.           <objectSet>
  97.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Startup]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Startup]")</condition>
  98.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Startup]</pattern>
  99.           </objectSet>
  100.           <objectSet>
  101.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Recent]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Recent]")</condition>
  102.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Recent]</pattern>
  103.           </objectSet>
  104.           <objectSet>
  105.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Desktop]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Desktop]")</condition>
  106.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Desktop]</pattern>
  107.           </objectSet>
  108.           <objectSet>
  109.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Favorites]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Favorites]")</condition>
  110.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Favorites]</pattern>
  111.           </objectSet>
  112.           <objectSet>
  113.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Cache]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Cache]")</condition>
  114.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [Cache]</pattern>
  115.           </objectSet>
  116.  
  117.         <!-- FOLDERID_LocalAppDataLow {A520A1A4-1780-4FF6-BD18-167343C5AF16} -->
  118.           <objectSet>
  119.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{A520A1A4-1780-4FF6-BD18-167343C5AF16}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{A520A1A4-1780-4FF6-BD18-167343C5AF16}]")</condition>
  120.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{A520A1A4-1780-4FF6-BD18-167343C5AF16}]</pattern>
  121.           </objectSet>
  122.  
  123.         <!-- FOLDERID_Playlists {DE92C1C7-837F-4F69-A3BB-86E631204A23} -->
  124.           <objectSet>
  125.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{DE92C1C7-837F-4F69-A3BB-86E631204A23}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{DE92C1C7-837F-4F69-A3BB-86E631204A23}]")</condition>
  126.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{DE92C1C7-837F-4F69-A3BB-86E631204A23}]</pattern>
  127.           </objectSet>
  128.  
  129.         <!-- FOLDERID_PhotoAlbums {69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C} -->
  130.           <objectSet>
  131.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}]")</condition>
  132.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}]</pattern>
  133.           </objectSet>
  134.  
  135.         <!-- FOLDERID_Downloads {374DE290-123F-4565-9164-39C4925E467B} -->
  136.           <objectSet>
  137.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{374DE290-123F-4565-9164-39C4925E467B}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{374DE290-123F-4565-9164-39C4925E467B}]")</condition>
  138.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{374DE290-123F-4565-9164-39C4925E467B}]</pattern>
  139.           </objectSet>
  140.  
  141.         <!-- FOLDERID_SavedSearches {7d1d3a04-debb-4115-95cf-2f29da2920da} -->
  142.           <objectSet>
  143.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{7d1d3a04-debb-4115-95cf-2f29da2920da}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{7d1d3a04-debb-4115-95cf-2f29da2920da}]")</condition>
  144.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{7d1d3a04-debb-4115-95cf-2f29da2920da}]</pattern>
  145.           </objectSet>
  146.  
  147.         <!-- FOLDERID_Contacts {56784854-C6CB-462b-8169-88E350ACB882} -->
  148.           <objectSet>
  149.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{56784854-C6CB-462b-8169-88E350ACB882}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{56784854-C6CB-462b-8169-88E350ACB882}]")</condition>
  150.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{56784854-C6CB-462b-8169-88E350ACB882}]</pattern>
  151.           </objectSet>
  152.  
  153.         <!-- FOLDERID_GameTasks {054FAE61-4DD8-4787-80B6-090220C4B700} -->
  154.           <objectSet>
  155.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{054FAE61-4DD8-4787-80B6-090220C4B700}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{054FAE61-4DD8-4787-80B6-090220C4B700}]")</condition>
  156.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{054FAE61-4DD8-4787-80B6-090220C4B700}]</pattern>
  157.           </objectSet>
  158.  
  159.         <!-- FOLDERID_SavedGames {4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4} -->
  160.           <objectSet>
  161.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4}]")</condition>
  162.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4}]</pattern>
  163.           </objectSet>
  164.  
  165.         <!-- FOLDERID_Games {CAC52C1A-B53D-4edc-92D7-6B2E8AC19434} -->
  166.           <objectSet>
  167.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{CAC52C1A-B53D-4edc-92D7-6B2E8AC19434}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{CAC52C1A-B53D-4edc-92D7-6B2E8AC19434}]")</condition>
  168.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{CAC52C1A-B53D-4edc-92D7-6B2E8AC19434}]</pattern>
  169.           </objectSet>
  170.  
  171.         <!-- FOLDERID_RecordedTV {bd85e001-112e-431e-983b-7b15ac09fff1} -->
  172.           <objectSet>
  173.             <condition negation="Yes">MigXmlHelper.IsSameStringContent("Registry","HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{bd85e001-112e-431e-983b-7b15ac09fff1}]","Registry","HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{bd85e001-112e-431e-983b-7b15ac09fff1}]")</condition>
  174.             <pattern type="Registry">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [{bd85e001-112e-431e-983b-7b15ac09fff1}]</pattern>
  175.           </objectSet>
  176.         </include>
  177.  
  178.         <processing when="apply-success">
  179.           <script>MigXmlHelper.RemapShellFolderPaths('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders [*]')</script>
  180.         </processing>
  181.  
  182.       </rules>
  183.  
  184.     </role>
  185.   </component>
  186.  
  187. </migration>
  188.