MakePE: ScriptsRW Customizations


I’ve spent a great deal of time working on MakePE and writing the scripts, so do me a favor and don’t edit them. They are intentionally generic so anyone should be able to build out WinPE.

But if absolutely hijack my work, then have a look in the MakePE\ScriptsRW directory. Keep in mind before you got started, there was only one file in here.

2015-10-15_1-02-24


Every different function in MakePE creates these files automatically.  In the image below on the left is the Add-ExtraFiles.cmd step.  If you read the script, it will create this file if it does not exist, and then execute it.

2015-10-15_1-05-02

Let’s say for example I wanted to add ImageX.exe as an Extra File.  So I don’t have to copy the proper version and architecture into my ExtraFiles directory, I can simply add the logic in here.

2015-10-15_1-07-25

And now ImageX.exe will be part of all my WinPE builds with the proper version.


Another example is the Install-DaRT.cmd step.  I can add the logic in the ScriptsRW\Install-DaRT.cmd to rename Locksmith to make it harder (but not impossible) for someone to get in WinPE and change the Administrator Password.

2015-10-15_1-09-47


One thing I hate seeing on my ISO’s is all the languages in the root.

2015-10-15_1-11-58

And yes it is easy enough to add the logic to remove them during MakePE

2015-10-15_1-12-56

Resulting in a more beautiful presentation of the ISO files

2015-10-15_1-16-55


And with the right logic in the ScriptsRW files

2015-10-15_1-23-55

You can convert the standard WinPE experience

2015-10-15_1-20-22

Into something completely different

2015-10-15_1-31-29

Advertisements