Building Redstone 4 RTM (17133.1) installation media using Media Creation Tool

by evil_pro3 weeks ago

Today we’re going to take a look at how we can make use of the recently leaked Redstone 4 products definition to build installation media for the Spring Creators Update.

Idea and modification: Lucas (@tfwboredom)
Products.xml: WalkingCat (@h0x0d)

Prequisites

 

First off, there are two files we will need:

Normally, Media Creation Tool downloads the appropriate products.cab automatically. Inside that cabinet file is the products.xml.

The Redstone 3 products.cab can be found here.

Comparison

 

Now if we take take a look at both files, we will find a fundamental difference.

Redstone 3:

<xml version="1.0" encoding="UTF-8"?>
<MCT>
 <Catalogs>
   <Catalog version="1.1">
     <PublishedMedia id="1761" release="RS3-RTM WU for MCT">
       <Files>
         <File>
           ...
         </File>
       </Files>
       <Languages>
         <Language>
           ...
         </Language>
       </Languages>
       <EULAs>
         <EULA>
           ...
         </EULA>
       </EULAs>
     </PublishedMedia>
   </Catalog>
 </Calatogs>
</MCT>

 

Redstone 4:

<xml version="1.0" encoding="UTF-8"?>
     <PublishedMedia id="1998" release="RS4_RTM">
       <Files>
         <File>
           ...
         </File>
       </Files>
       <Languages>
         <Language>
           ...
         </Language>
       </Languages>
       <EULAs>
         <EULA>
           ...
         </EULA>
       </EULAs>
     </PublishedMedia>

 

The difference should be relatively easy to spot: Redstone 4’s definition file lacks the enclosing <MCT>, <Catalogs> and <Catalog> tags.

Adapting the .xml to work with Media Creation Tool

 

To be able to use this .xml with Media Creation Tool we have to add these on our own by inserting the beginning tags after the first line and the ending ones at the very end.

The resulting file should look like this:

<xml version="1.0" encoding="UTF-8"?>
<MCT>
 <Catalogs>
   <Catalog version="1.1">
     <PublishedMedia id="1998" release="RS4_RTM">
       <Files>
         <File>
           ...
         </File>
       </Files>
       <Languages>
         <Language>
           ...
         </Language>
       </Languages>
       <EULAs>
         <EULA>
           ...
         </EULA>
       </EULAs>
     </PublishedMedia>
   </Catalog>
 </Calatogs>
</MCT>

 

Before we can download the Spring Creators Update with Media Creation Tool, we need to save the edited .xml file as products.xml and put it inside a cabinet file.

After saving the file open a command prompt

makecab products.xml products.cab

Now stuff the products.cab you just created in a folder together with MediaCreationTool.exe and run MediaCreationTool.exe /Selfhost using your command line of choice. Once you have it running, you can proceed with creating your installation media as usual.

You can download the fixed Products.cab (Redstone 4) here.

Comments