143 - Modify a WinPE OS without changing the source files using PEStartup
You have a multiboot USB drive (e.g. Easy2Boot or some other bootable USB drive).
You have a number of WinPE ISOs, WIM files or other type of WinPE payload on it.
You would like to boot to WinPE and add your own Desktop shortcuts to some of the portable apps on your USB drive, change the wallpaper, add Registry entries and auto-run a few programs.
You do not want to have to rebuild the WinPE ISO\WIM file each time.
This solution allows you to do just that.and it will work for all your WinPE's.
Drivers: automatically install drivers every time booting into WinPE. Drivers can be downloaded from DriverPacks. If you want to use your driver, compress it to a .zip file. For XP, you need to rename the file and add “XP_" before the file name. Shortcuts: add shortcut to desktop screen on startup. This gives you quick access to the files. AutoRun: automatically runs programs or scripts every time the system boots. Registry: automatically import Registry files every time you boot into WinPE.
Options: set wallpaper and RAM Disk memory size, enable/disable what is run on startup.
The solution will automatically run after 20 seconds, provided ChrisR's Win10PESE WinBuilder Project at TheOven.org was used to make the WinPE OS and if it includes the default 'Portable Finder Startup' plugin.
You can check to see if your WinPE is compatible by looking for the file X:\windows\system32\Portable Finder Startup.cmd once booted to WinPE.
The plugin can be found in WinBuilder WinPESE projects at \Apps\System Tools\'Portable Finder Startup'.
Some Gandalf WinPEs based on WinBuilder Win10PESE (e.g. Gandalf Redstone 2) will automatically work.
For all other WinPE's which do not have the WinBuilder 'Portable Finder Startup' plugin, once you have booted to the WinPE Desktop, you must manually run the \TheOven_Startup.cmd script by double-clicking on it.
How it works
In either case described above, the script \TheOven_Startup.cmd is executed under WinPE.
This script runs the PEStartup .exe file located under \AIO\Tools\PEStartup on the USB drive.
PEStartup is a convenient Windows GUI utility with which you can easily add Desktop shortcuts to any portable apps that you have on the USB drive.
It can also be configured to change the Desktop Wallpaper, add Registry entries (from .reg files), install drivers and autorun programs.
PEStartup stores it's configurations settings on the USB drive in the same \AIO\Tools\PEStartup folder.
To change the configuration, just boot to WinPE and edit them using the PEStartup GUI.
Tứ Nguyễn is the author of AIOBoot, a multiboot USB solution. He also wrote the PEStartup executable which is detailed here.
I have written a small \TheOven_Startup.cmd script which will automatically start the PEStartup executable (or which you can run manually if the WinPE OS does not have the required plugin).
XP driver .zip files must begin with a name of XP_
4. Add any .reg fragments that you want to the \AIO\Tools\Registry folder
How to use PEStartup
1. Boot to your chosen WinPE OS.
If you want some WinPE .wim files which you can just add to an Easy2Boot USB drive, try the AIOBoot XP or the Win10 WinPEs from here and the Gandalf WinPEs. These will automatically run PEStartup.
You can make your own WinBuilder Win10PEs using ChrisR's WinBuilder projecthere.
Other WinPEs include those by Falcon F4, Strelec, Hiren, DLC, Dium, etc.
2. If PEStartup does not automatically start after 30 seconds, double-click on \TheOven_Startup.cmd
A PEStartup shortcut will be added to your Desktop + any other configuration changes that you have specified.
3. You can now use PEStartup to add Desktop shortcuts, autorun programs, specify a wallpaper file and run registry fragments.
Note that PEStartup will keep 64-bit and 32-bit configurations separate.
However, the same configuration will be used for both a 32-bit XP PE Operating System and a 32-bit Windows 10 Operating System.
After Saving any changes, you can make them take affect immediately by clicking the 'Perform' button.
For instance, you can add a shortcut on a 64-bit WinPE Desktop for \AIO\Tools\7Zip-64\7zFM.exe.
Changing how PEStartup runs
The \TheOven_Starup.cmd script contains the parameters to automatically run PEStartup and then quit.
The file contains these lines:
REM run PEStartup REM remove --hide if you don't want the app to close, REM remove --perform if you don't want the configuration to take affect start %USBDRIVE%\AIO\Tools\PEStartup\%XE% --perform --hide
You will need to change the parameters in red to change it's behaviour.