Yes, that's basically it.
I'm trying with a rough summary
In a Windows 10 ISO, you have 3 images:
- Boot.wim for booting before installing Windows
- Install.wim, which contains several Windows installation images (Home, Education, Professional)
- And Winre.wim, the Windows recovery environment included in Install.wim, which can be accessed via a hotkey (F8 or other) when starting up the PC.
This image is similar to Boot.wim with additional apps and features for recovery, including a minimal network support.
Basically the work with Winbuilder, an interpreted scripting language with an integrated GUI is:
- Apply (mount) the Winre.wim image that serves as a base in a subfolder (Target).
- Load the registry hives to apply the correct access rights.
- Extract the required files from the Windows Install.wim image, depending on the features to be added.
- Copy and adapt parts of the registry from install.wim to winre.wim.
- Integrate host PC drivers, mainly network drivers. Making them available is the user's job.
- Install various applications as selected in the tree by the user.
- The BCD (Boot Configuration Data) is prepared to start boot.wim, below
- Then package everything by creating a new boot.wim image and Win10XPE_x64.ISO
The list of files according to functionality and the registry is the big part of the job, so as to have only the required dependencies and not much more.
Taking into account all changes following Windows updates ISO version, every 6 months.
In application scripts, additional required dependencies are added, driver if there is, required associated registry, services and shortcuts.
For PureBasic, there are no additional dependencies to add, it works very well out of the box on a very light, minimal configuration, proof of its strength and efficiency.
From this ISO created, there is no installation:
- It can be copied (extracted) to a USB stick using USB7Ice or Rufus.
- Copied (extracted) to a hard disk or SSD partition (4 Gb is more than enough)
In this case, a script "XPE Host Boot Option" prepare for you a batch to configure Win10XPE's entry in your PC's BCD (boot configuration data).
It's up to you to run it and add Win10XPE at your PC startup list
If booting from a USB key, at 1st use, you must enter in the boot configuration (via hotkeys, ex: F2 for Acer) to add the USB stick to the startup list.
At Win10XPE startup, the bcd loads Bootmgr then applies the boot.wim image in a Ramdisk (WinPE Cache).
Then the system is started from memory, hence the speed in addition to being light and with only the required processes and services started.
But it can't be used like a normal windows, boot.wim image is fixed, modifications or applications install are not preserved, like a snapshot, it's an image.
But with the advantage of remaining intact and keeping the same performance and functionalities.
On the other hand, files created or copied outside X: drive (boot.wim) on the usb key or hard disk are them preserved.
I hope I was clear enough, I am really off topic and unrelated to PB, even if some tools included are written with PB.
Well, the best way to understand is to try. Win10XPE is designed to be simple for users but there is still a small learning curve.
I think it's good to have it at hand, in your toolbox, on a USB key or on a hard drive partition, prepared in advance in case.
You will probably be happy to have it available to repair a future problem on your computer, such as boot problem, unreadable partition, deleted files to recover, malware, etc.
Sorry Marc_256 to have polluted your topic with my ads for my open source project.
I would like to thank again Kyhi, for all the application scripts added and contributions. And not to be completely naive, the Microsoft guys who contributed on some difficult points, without saying where they come from!