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

by evil_pro7 months 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)

Important Update

 

As some of you might have heard already, Microsoft has found a bug in build 17133 and selected a newer build as the final one, which delayed the release of Redstone 4. The new build that is designated to go out to non-Insiders is 17134. We have updated the post to include links to the newer products.xml, which has once again been found by WalkingCat.

Prequisites

 

First off, there are two files we will need:

17134:

17133:

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>
 </Catalogs>
</MCT>

 

Redstone 4:

<?xml version="1.0" encoding="UTF-8"?>
     <PublishedMedia id="2012" release="RS4_RTM 17134 April 2018">
       <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="2012" release="RS4_RTM 17134 April 2018">
       <Files>
         <File>
           ...
         </File>
       </Files>
       <Languages>
         <Language>
           ...
         </Language>
       </Languages>
       <EULAs>
         <EULA>
           ...
         </EULA>
       </EULAs>
     </PublishedMedia>
   </Catalog>
 </Catalogs>
</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) below:

Comments