Topic: Win10XPE - How To Quick Start Guide  (Read 33094 times)

Win10XPE - How To Quick Start Guide
« on: September 10, 2018, 03:59:26 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Download the XPE Project File and extract the file...

Copy Win10XPE folder to your Data Drive. (I prefer to use my D drive rather then my C Drive as to keep away from OS..
If using Windows 10 as your Host OS - you will need to allow a Windows Defender "Exception" for the Win10XPE folder ( I would suggest the same exception for any A/V software) in order to allow the program exe's to run without being blocked....

Then Mount Your Official Release Windows 10 Setup Media ISO (it is suggested that you copy the contents of the setup media to a folder on your Data Drive and select it as the source) but it is not required..
Note: We do not add support for MS Preview Releases - all projects use Official MS Release Media

When you run the Win10XPE.exe the builder will open (Note: A link to Official Media Download is present on interface)
ila_rendered

Hit the gray box and point to the folder location or drive letter of the Setup Media..
ila_rendered

After it finds the media that main screen will change now listing the Wim Info
ila_rendered

You can use the scroll box to select "Pro" or make any other selection..
Then Hit the Big Blue Play Button....
ila_rendered

Sit back, watch and relax as the program runs...
It will download several programs and features (Please allow it to do so) these downloads are designed as First Run only.
XPE will open command prompt to extract files, download and run program commands (Please allow it to do so)

After The Builder Finishes you will get an OK message..
Browse to the folder location of Win10XPE and you will find your Custom ISO...
ila_rendered

Now that you have created your FIRST custom PE with the default selections..
You can change those selections by checking or unchecking program checkboxes in the left pane..
if you click the program name in the left pane - the program interface will display in the right pane.
Each program interface has the ability to select shortcuts and may have other options you can choose from...
ila_rendered
« Last Edit: October 25, 2018, 06:02:33 PM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #1 on: September 10, 2018, 04:29:27 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Suggested Build Core Default Options

You Can Select From Additional Features and Options
ila_rendered
 
Note: Some Programs May Require Net Framework (Microsoft .Net) or Additional Networking Files (Network Additions)
Note: Custom jpg Wallpaper Must Be Renamed To > Img0.jpg
Note: Custom mp3 Startup Sound Must be Renamed to > Startup.mp3

Additional Options Interface
Note: Leave "Build Type" Alone
Select Your Options and Return To Main Interface
ila_rendered


************************************************************

Add Custom Drivers

Here is the thing about adding custom "Drivers"
If you can run through windows 10 setup without it asking you for driver files - then most likely you will not need to add them to your XPE...
Some Drivers may require a reboot, it is not possible to install those drivers after PE is loaded, so they must be integrated in your XPE build..
I would suggest Booting XPE to test first, before you commit additional drivers...

But Basically You are going to be Exporting those Driver(s) from your Host PC with DISM
ila_rendered

You will then Copy the Driver Folders into the Driver Integration Folder in XPE
Another Hint To Additional Drivers - Copy Your Macrium Reflect "Drivers" Folder.
ila_rendered

Be sure to check the "Integrate Custom Drivers" Checkbox
The Drivers are sorted by Arch - and Each Driver Folder is Recursed

Note: You Only Need To Load Required/Special Drivers That Are Not Included In WinPE

************************************************************************

Additional Folders

There is a "Custom Folder" So You Can Include Additional Program Files (For Portable Programs or Custom Files/Folders)
To Process Custom Folder - Check The "Add Your Custom Folder" Checkbox
ila_rendered


There Is An "ISO Root Folder" where you can place additional files on the root of drive
These are files that will be Accessible Without Booting into WinPE
To Process The Root Folder - Check The "Include Files In ISO Root" Checkbox
ila_rendered
« Last Edit: September 23, 2018, 04:08:36 AM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #2 on: September 17, 2018, 03:52:16 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Add Host Boot Menu Option

I will provide a little hint for you so you can Boot directly from the Win10XPE folder...
Thus no need to keep burning/coping ISO files to USB..

ila_rendered

Hit the "Create Batch File" button - that will create a batch file to add the Boot Menu option for XPE to boot from the Win10XPE directory

Note: If your selected build is to USB the Y drive is not created (As Y Drive is the Root of the drive)
Selecting the "Run All Programs From Ram" option will work no problem..

To Remove The Host Boot Menu Entry

Open Command Prompt (Admin) or Use "Run" box

Type> msconfig

Select the "Boot" Tab and remove the "XPE Recovery" Option

*********************************************************

Run All Programs From Ram ??

In the "Above Post" screenshots you will see a "Run all programs from ram" checkbox (Just below the HostOS boxes) ...
Selecting it will override the use of the Scrollbox on every program interface - by placing all the programs into Ram..

Leaving the "Run all programs from ram" checkbox - unchecked on Build Core Plugin
Will allow you to select the programs target location via the program interface.. USB or RAM

ila_rendered

******************************************************

Add Additional Plugins or Make Edits To Current Build

There are times when you may want to Add Additional Plugins or Make Edits To Your Current Build
This can be done without the Need To Process the Complete Build Again.
Select The Plugin You Want to Add and Then Hit The Little Green Play Button on Plugin Interface

ila_rendered

After The Additional Plugin(s) are Added To The Build
Select The "Create ISO" Plugin from the Left Pane.
On the Interface Hit The "Create Boot.wim and ISO" Button

ila_rendered


 
« Last Edit: September 18, 2018, 03:16:55 PM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #3 on: September 17, 2018, 05:32:44 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Build Log - Error Messages - Build Stops Abruptly - Programs Not Found In ISO

Sometimes Things Go Wrong and Error Messages Appear - Sometimes Things Go Wrong And No Message Appears..
Instead Of Jumping To Make A Complaint Post In This Forum -  Use The "LOG" Tab and Investigate The Cause First...

The Build Log is My Best Friend When Creating and Testing Plugins..
Select The "Log" Tab after the Plugin Is Processed - Look For Yellow (Warnings) or Red (Errors) Icons In Pane

Everything Looks Good Here:
ila_rendered

**********************

Everything Not So Good Here - I See a Yellow Warning Message - Red would be an Error Message
ila_rendered

You Can Hover Your Mouse Over The Message to Read it

Ok, Now that you know something went wrong - Single Click The Message To Locate It In The Log
Scroll a little past the Message and You Will See The "Script" That Was Processed...
Now, You Have a General Idea of where To Start Looking and You May Be Able To Fix It...

IF
After All Else Fails and You Just Can't Not Figure Out The Cause
Post a Report with the Error Message and The Plugin That Caused it

Note: You Can Double-Click The Message To Copy It to Clipboard

(Include in your report post)
 
The Project Name - (XPE)
Your Source Arch - (x86 or x64)
The Build Selection - (USB or Ram)
The Source OS - (Win10-1803)

You can also save the complete build log - By Hitting The "Save As Log.Html" Button
Then Compress (7z or Zip) and Attach That log File To the Bottom of Your Report Post

**************************************************************************

Program Error Message(s) In WinPE

We Create and Test Plugins With Limited Resources and Do Our Best To Prevent Them..
With That Said, Not Every PC Is The Same and Program Error Messages Do Happen...

Take a Screenshot of The Error Message and Attach it to the Bottom of your report post..
ila_rendered
« Last Edit: November 24, 2018, 10:51:33 PM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #4 on: September 17, 2018, 05:33:33 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
 Reserved - Just In Case I Forget Something  :fell_asleep:
« Last Edit: September 18, 2018, 02:28:21 PM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #5 on: September 17, 2018, 05:34:37 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Update Existing Plugins

Let's take for example the ShowkeyPlus Plugin
We are going to use the "Edit" Button and the "Source" tab and look for the File Container Script
ila_rendered

The Plugin Uses a File Container (Most Plugins Do)
Also notice (above highlight) that the > SetupFile=ShowKeyPlus.7z
ila_rendered

The File Container is Always Hidden From Builder - So We Must First Unhide It..
Browse to the "\Win10XPE\Projects\MyPlugins\Apps\Security"
Notice that the "Apps" Folder Follows The Left Pane Structure in Builder
ila_rendered

Double-Click The ShowKeyPlus File Container Script and Open with Notepad
To UNHIDE The Container File Plugin Edit in Notepad > Level=0 to Level=5 - Save and Exit
To HIDE The Container File Plugin Edit in Notepad > Level=5 to Level=0 - Save and Exit
ila_rendered

Go Back Into Builder and Hit "Refresh" Button
ila_rendered

Extract Attachment from Plugin

The Container File Is Now Visible
Select "Edit" Button and Select "Attachments" Tab
ila_rendered

Right Click The Setup File and Extract To Desktop
ila_rendered

************************************************************************************

Update/Replace The Program Files Inside the 7z Setup File on your Desktop

You usually only need to update the existing files - because we usually do not include unneeded files

************************************************************************************

Encode Attachment To Plugin

Select the Add.. Button
As seen above in the Upper left Corner of Attachment Interface
A "File Encoder" Dialog Box will Open
ila_rendered

Select the Add.. Button and Point to the Updated 7z Setup File on your Desktop
ila_rendered

Notice that the Setup File .7z is shown in the left pane and Then Click "Start" Button
ila_rendered

Exit The Attachment Interface By Clicking The Red X in the Upper Right Corner
ila_rendered

You Have Just > Extracted, Updated and Encoded A File...
« Last Edit: September 18, 2018, 04:18:42 PM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #6 on: September 17, 2018, 08:00:54 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Create Portable App Packed Plugins

For this Example > Download The Portable Version Of CCleaner-Defraggler

Go Into Your Download Folder - Extract The Defraggler.zip File
ila_rendered

Open The Extracted Folder and View The Contents
ila_rendered

Ok, What We Have Is A Portable Program with Both x86 and X64 Files (Some Websites Have Separate Downloads For x86 and x64 Programs)
For The Sake Of Argument - We Will Create Two Separate Compressed "Setup Files" One For x86 Program Files
Select The x86 Program Files, Compress With 7zip and Rename The New Compressed 7z File To > Defraggler.7z
ila_rendered

ila_rendered

Select The x64 Program Files, Compress and Rename Compressed File to > Defraggler64.7z
ila_rendered

Open Win10XPE - Expand Utilities - Select XPE Packed Plugin Creator
ila_rendered

Hit The "Folder" Icon For 32Bit and Point To The Defraggler.7z File You Just Created
ila_rendered

Do The Same Thing For The 64Bit Defraggler64.7z File You Just Created
Type In the Program.exe - In This Case It Is > Defraggler.exe
Type In The Author Name (Usually Your ScreenName)
Hit The "Create New XPE Plugin" Button
ila_rendered

You Will Find Your New Plugin For Personal Testing In Left Pane App/XPE Plugin Creator
ila_rendered
Hit The "Launch" Button To Open The Program Folder and Test The Program.exe


I Purposely Left Something Very Simple Out....
It Is Your Homework To Figure Out What...
As It Has Already Been Covered In This Quick Start How-To Guide

« Last Edit: September 19, 2018, 01:26:11 AM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #7 on: September 17, 2018, 09:00:30 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Add Registry Setting

Option 1) The Easiest Way To Add Registry Settings Is To Cheat

Read other plugins by using the Edit button and Selecting the Source tab....
ila_rendered

If you see the registry line(s) you are looking for - Copy them into your Plugin...
ila_rendered

**************************************************************

This is where this Game gets Very Tricky and Requires Experience...
And it will require you to do a lot of Testing with your Plugin Settings
On the Plus Side > it is PE and written to rewritable media
If you screw up - Erase, Rebuild and Test Again

**************************************************************

Option 2) Export The Registry Settings

You Can Export the Registry Settings from your Host Registry or PE Registry using RegEdit
ila_rendered

Select Create ISO Plugin and on Interface Hit the "Reg Convert PE" Button
ila_rendered

Click Folder Icon and Point to the Exported Registry File - ie Test.reg
ila_rendered
ila_rendered

Select "Gooo Reg File" Button
ila_rendered

Click Save and Close the Dialog Box...
ila_rendered


The Script File Created is the code for adding the registry setting you exported and are going to use in your Plugin
You will not use that Script File [process] but the code for the settings will be copied under [Add-Registry] in your plugin.....

Be Very CAREFULL and Read the Settings as they are exported from a different Host and many use different Folder locations
YOU will need to change this information and you may not need to add all the registry settings....

**********************************************************

Option 3) Capture The Registry Settings Before and After The Programs Installation Process

Launch or Execute The RegShot2 Program
ila_rendered

Hit The "1st Shot" Button and Select "Whole Registry"
ila_rendered
Note: I Changed The Default "Folder For Store Report" To > %UserProfile%\Desktop\RegShot

Run the Installer File That You Want To Capture The Registry Changes For

Then Take "2nd Shot - Whole Registry"
The > Report.*.RedoReg.txt < File Contains The Registry Changes Created By The Installer
Save That Text File and Use "Reg Convert PE" Same As Above - But Point To This Txt File
ila_rendered



« Last Edit: September 18, 2018, 09:40:52 PM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #8 on: September 17, 2018, 11:38:43 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Find Missing or Required Files

Quote from: muggles
I'm no expert, but a post by ChrisR with the tip to sort on CreateFile allowed success on the few that I tried it on.
Here is my process, I hope this helps and others pitch in with more experience than what I have.

-Start Process Monitor (Procmon.exe) then Start The Program.
-Find the Program.exe in the Process Name Column, Right-Click and choose Include "Program.exe".
-Find the word SUCCESS in the Result Column, Right-Click and choose Exclude "SUCCESS".
-Find the word CreateFile in the Operation Column, Right-Click and choose  Include "CreateFile".

You should see the Required or Missing Files listed with "NAME NOT FOUND" and see the Path The Program Searched for them.


Properly Test Your New Plugin
Deselect all other APPs (uncheck Apps Folder)
Deselect all MS Features from Build Core
Select Just your New Plugin
Select Build Core Plugin
Select Create ISO Plugin
Process The New Build
Test Boot Into XPE WinPE

Test if Program Launches and Runs Without Error
Does it have all required files to run without support from other plugins
Does it open the correct file type for the program
Does it scan properly or create required file
Select the "About" - Usually to test Registry Settings
Etc...

Note: Some Non-Portable Programs' Require MS Files, Need a few Registry Entries and Require Driver Files Copied into System32

Test Your Plugin Using Both x86 and x64 Builds
ila_rendered


When You Are Satisfied With Your New Plugin - Please Share It For Other Members To Test

All This Takes A lot Of Time, Testing and Learning To Get Things Right..
That Is What Makes This A Hobby For Us...
And A Great Self Taught Experience That Will Last A Lifetime...

From Me and All The Other Members Here At TheOven
Enjoy!!



« Last Edit: September 18, 2018, 10:30:33 PM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #9 on: October 13, 2018, 08:04:03 PM »

outThere

  • Apprentice
  • *
  • Date Registered: Oct 2018
  • Posts: 3
hi    how do I change the wallpaper?

Re: Win10XPE - How To Quick Start Guide
« Reply #10 on: October 13, 2018, 08:13:35 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
ila_rendered

You Must ReName Your Wallpaper to img0.jpg
« Last Edit: October 13, 2018, 08:16:01 PM by James »

Re: Win10XPE - How To Quick Start Guide
« Reply #11 on: October 13, 2018, 08:44:54 PM »

outThere

  • Apprentice
  • *
  • Date Registered: Oct 2018
  • Posts: 3
thanks   :great:

Re: Win10XPE - How To Quick Start Guide
« Reply #12 on: October 15, 2018, 09:54:29 PM »

Hfischermn

  • Apprentice
  • *
  • Date Registered: Oct 2018
  • Posts: 1
regarding setting up Win10XPE James says "Then Mount Your Official Release Windows 10 Setup Media ISO." Are we referring to "Win10_1803_English_x64.iso" or an Original install disk"? That would be helpful for me to understand.

Re: Win10XPE - How To Quick Start Guide
« Reply #13 on: October 15, 2018, 10:44:16 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Win10_1803_English_x64.iso or any other official ISO
« Last Edit: October 15, 2018, 10:44:38 PM by bob.omb »

Re: Win10XPE - How To Quick Start Guide
« Reply #14 on: January 05, 2019, 11:53:29 AM »

sebus

  • Apprentice
  • *
  • Date Registered: Dec 2015
  • Posts: 4
Official Win10_1809Oct_English_x64.iso

Yet it errors out with "This build is prepared for Windows 10 Build 16299 and maybe following. Download and chose a suitable windows 10 source"

Re: Win10XPE - How To Quick Start Guide
« Reply #15 on: January 05, 2019, 02:35:29 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Can you look at what you have in \Temp\WimInfo.ini
BUILD key for the selected image should be 17763 (> 16299)
Code: [Select]
[6]
ARCH=9
BUILD=17763
...
EDITIONID=Professional
...
VERSION=10.0.17763.107

Re: Win10XPE - How To Quick Start Guide
« Reply #16 on: January 05, 2019, 04:22:20 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Get your source from here and try again: https://tb.rg-adguard.net/public.php

Win10_1809Oct_English_x64.iso is not a known official ISO name
« Last Edit: January 05, 2019, 04:24:15 PM by bob.omb »

Re: Win10XPE - How To Quick Start Guide
« Reply #17 on: January 05, 2019, 05:09:39 PM »

APT

  • Grand Chef
  • *****
  • winpe enthusiast
  • Location: UK
  • Date Registered: Nov 2012
  • Posts: 1150
......
« Last Edit: July 27, 2019, 02:35:39 PM by APT, Reason: moved »

Re: Win10XPE - How To Quick Start Guide
« Reply #18 on: March 11, 2019, 04:06:16 PM »

Thedaddy

  • Apprentice
  • *
  • Date Registered: Mar 2019
  • Posts: 5
Hi,

Is there a way to add windows sounds automatically? Specifically hardware insert and remove?

Re: Win10XPE - How To Quick Start Guide
« Reply #19 on: March 11, 2019, 05:02:30 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
On Build Core > Enable "Audio" & "System Sound Events"

 

Powered by EzPortal