2 Pages V   1 2 >  
Reply to this topic
 Winpe 3.0 - Win7 Guide In Progress, How to build a WinPE Image 3.0 Manually
post Jun 15 2009, 05:23 PM
Post #1
Morphs
Newbie   *
Group: Members

  Joined: 23-October 06 From: Atlant GA

Posts: 26
Thank(s): 11


United States


As requested by one of our members I compiled this guide. This is my First Guide
and It is a work in Progress. I have plans to cover the registry as well.

Note: I will be re posting to my new Website With lots of room for Images

Project Q&A

Why Use Windows 7 For this Build?
• Support for Virtual Hard Disk.
• Easy mounting for VHD via Disk Management.
• Access to your local Drives while on WinPE mode.

Why Use a VHD instead of ISO?
• All files get saved to VHD while on PE Mode.
• Applications Get Installed Correctly (Via EXE)
• Once you complete your Build you can capture an Image and create your ISO.

Why use Index 2 of the Windows 7 Boot.wim?
• Contains most drivers.
• Has all the Optional Components.

Components Loaded

1. WinPE-HTA-Package
2. WinPE-MDAC-Package
3. WinPE-Scripting-Package
4. WinPE-SRT-Package **
5. WinPE-WMI-Packages
6. WinPE-WDS-Tools-Package
7. WinPE-Setup-Package
8. WinPE-Setup-Client-Package
9. WinPE-Setup-Server-Package
10. WinPE-LegacySetup-Package


System Requirements


• Windows 7 RC1 X86 loaded on Host PC and Installation Media
• Microsoft Windows AIK (Windows 7 Deployment tools)
• GImagex

Note:Make sure your copy of Windows 7 RC1 was downloaded from
Microsoft. Leaked version may have viruses and trojans



The Build



Project Structure

Let’s keep all our working files on One Place.

Directory Structure on Root of Local HD

Attached Image


Files we need to create for the Windows System32 Folder.

Winpeshl.ini
CODE
[LaunchApp]
AppPath = %SYSTEMDRIVE%\Windows\System32\vpeldr.exe


Vistape.cfg
CODE
[main]
screen=1024x768
defaultshell=BS Explorer

[shortcut]
Desktop|My Computer|X:\Program Files\CubicExplorer\CubicExplorer.exe||
Desktop|Infra Recorder|%SystemDrive%\Program Files\InfraRecorder\InfraRecorder.exe||
Desktop|Mozilla FireFox|X:\Program Files\FireFox\FirefoxPortable.exe||
Desktop|GimageX|X:\Program Files\GImagex\X86\gimagex.exe||
Desktop|GimageX|X:\Program Files\DependencyWalker\depends.exe||
Disk Tools|GimageX|X:\Program Files\GImagex\X86\ gimagex.exe||
Network|Mozilla FireFox|X:\Program Files\FireFox\ FirefoxPortable.exe||
CD Record Tools|Infra Recorder|%SystemDrive%\Program Files\InfraRecorder\InfraRecorder.exe||
Disk Tools|MBRWizard|%SystemDrive%\Program Files\ MBRWiz\MBRWhisky.exe||
QuickLaunch|PENetwork|%SystemDrive%\Program Files\ PENetwork\PENetCfg.exe||
Network| PENetwork|%SystemDrive%\Program Files\ PENetwork\PENetwork.exe ||

[autorun]
hidenowait|Starting ObjectDock|X:\Program Files\OBJECTDOCK\ObjectDock.exe

[shells]
BS Explorer|BSExplorer\Explorer.exe
ObjectDock|OBJECTDOCK\ObjectDock.exe

[postconfig]
hidewait|Human Interface Device Access|x:\windows\system32\net.exe start "hidserv"
hidewait|Computer Browser|x:\windows\system32\net.exe start "Browser"
hidewait|User Profile Service|x:\windows\system32\net.exe start "ProfSvc"
hidewait|Server|x:\windows\system32\net.exe start "LanmanServer"
hidewait|DNS Client|x:\windows\system32\net.exe start "Dnscache"


Application to be Downloaded

Firefox Portable
Extract to (C:\WinPE_Project\Program Files\FireFox)

Cubic Explorer 0.90 Zip
Extract to (C:\WinPE_Project\Program Files\ CubicExplorer)

INFRA RECORDER version 0.46.2 Portable Zip
Extract to (C:\WinPE_Project\Program Files\InfraRecorder)

MBRWizard – Script from Nightman on Winbuilder VistaPE Project.
Extract from Script and copy to folder ( C:\WinPE_Project\Program Files\MBRWiz)

PENetwork Beta V3.2 or Higher from Winbuilder VistaPE Application Script made by
Holger Kotsch ( Note: If you want to add WIFI Support you need to manually copy
The files specified on the script plus registry settings)
Copy to Folder (C:\WinPE_Project\Program Files\PENetwork)

Objectdock download
ObjectDock Portable I downloaded this as a Script from Winbuilder
Where. Copy to folder (C:\WinPE_Project\Program Files\OBJECTDOCK )

BSExplorer – Script from Winbuilder. Extract the files to
C:\WinPE_Project\Program Files\BSExplorer  

GImageX v2.0.14
Create a folder on Program Files Name GImageX. Extract the files and copy
The X86 folder to (C:\WinPE_Project\Program Files\GImagex)

Dependency Walker 2.2
Extract the files to(C:\ WinPE_Project\Program Files\DependencyWalker)

Your Program Files Folder should now look like this now.

Attached Image


WIM File Extractions


Open Imagex Gui v2.0.16 BETA and Apply from the Windows 7 RC1 the Install.WIM to
C:\WinPE_Project\Install Folder (Make Sure to Select Index 5 from the Install.WIM)

Make sure you select the correct drive letter.


Oops I am out of Space for more Pictures. I work something out soon
Picture goes Here


Next Select from the Windows 7 RC1 the BOOT.WIM and apply to
C:\WinPE_Project\Boot Folder Make Sure to Select Index 2 From the boot.WIM)

Make sure you select the correct drive letter.

Oops I am out of Space for more Pictures. I work something out soon
Picture Goes Here



File Copy Process

1. Copy the Folder (C:\WinPE_Project\Program Files) to (F:\WinPE_Project\Boot) and Over write when prompted
2. Copy the vistape.cfg and Winpeshl.ini to C:\WinPE_Project\Boot\Windows\System32





This is the list of the files you need to copy, I will keep updating as I get more.

CODE
Windows\System32 Files Need it from Install.wim copy them to (C:\WinPE_Project\boot\Windows\System32
apphelp.dll
CertEnroll.dll
CertEnrollUI.dll
clbcatq.dll
crtdll.dll
cscapi.dll
devmgr.dll
efsadu.dll
msoert2.dll
msrating.dll
ndfapi.dll
netplwiz.dll
occache.dll
oledlg.dll
puiapi.dll
RstrtMgr.dll
shdocvw.dll
shfolder.dll
vaultcli.dll
wdi.dll
msfeeds.dll
Msi.dll
GDIPLUS.DLL
IEshims.dll
imgutil.dll
inetcomm.dll
mlang.dll
MMDevAPI.dll


Hint Find the Folder or DLL Inside and just paste to target Boot, Make sure to Create the Folders or Paste them!

CODE
Windows Folder Created with DLLs inside
From Install Wim Copy Folder
Windows\winsxs\x86_microsoft-windows-security-vault_31bf3856ad364e35_6.1.7100.0_none_625c0918901ee09a
Copy Folder to Target (C:\WinPE_Project\boot\Windows\winsxs\)


From Install Wim Copy Folder
Windows\winsxs\x86_microsoft-windows-ie-feeds-platform_31bf3856ad364e35_8.0.7100.0_none_ec13f209f2934e2a
Copy Folder to Target (C:\WinPE_Project\boot\Windows\winsxs\)

From Install Wim Copy Folder
Windows\winsxs\x86_microsoft-windows-installer-engine_31bf3856ad364e35_6.1.7100.0_none_746d768d089a904a
Copy Folder to Target (C:\WinPE_Project\boot\Windows\winsxs\)
Files on Folder are {Msi.dll, msimsg.dll}


From Install Wim Copy Folder
Windows\winsxs\x86_microsoft-windows-ie-ieshims_31bf3856ad364e35_8.0.7100.0_none_d3ba97b35255ec5f
C:\WinPE_Project\boot\Windows\winsxs\Windows\winsxs\
File Inside {IEshims.dll}

From Install Wim Program Files\Internet Explorer\IEshims.dll
To (C:\WinPE_Project\Boot\Program Files\IEshims.dll)

From Install Wim Copy Folder
Windows\winsxs\x86_microsoft-windows-ieframe_31bf3856ad364e35_8.0.7100.0_none_f0cfd45d663bf2d5
Copy Folder to Target (C:\WinPE_Project\boot\Windows\winsxs\)

From Install Wim Copy File to Folder
Windows\winsxs\x86_microsoft-windows-ie-imagesupport_31bf3856ad364e35_8.0.7100.0_none_ca223091ab2b6539\imgutil.dll
Copy Folder to Target (C:\WinPE_Project\boot\Windows\winsxs\)

From Install Wim Copy Files to Folder
Windows\winsxs\x86_microsoft-windows-mail-comm-dll_31bf3856ad364e35_6.1.7100.0_none_eaa422cbada275b2
INETRES.dll
inetcomm.dll
Copy Folder to Target (C:\WinPE_Project\boot\Windows\winsxs\)


From Install Wim Copy Files to Folder
Windows\winsxs\x86_microsoft-windows-mlang_31bf3856ad364e35_6.1.7100.0_none_c7d243da39141f88
mlang.dll
mlang.dat
Copy Folder to Target (C:\WinPE_Project\Boot\Windows\winsxs\)

From Install Wim Copy Files to Folder
Windows\winsxs\x86_microsoft-windows-mmdeviceapi_31bf3856ad364e35_6.1.7100.0_none_c5f73bf90e77abd3
MMDevAPI.dll
Copy Folder to Target (C:\WinPE_Project\Boot\Windows\winsxs\)



Creating Your VHD files

Open A Command Prompt Windows and Type Each Command

CODE

diskpart

create vdisk file=c:\winpe.vhd type=fixed maximum=2024

select vdisk file=c:\winpe.vhd

attach vdisk

create partition primary

assign

format quick label=VHD

exit



Oops I am out of Space for more Pictures. I work something out soon
Picture Goes Here

Adding the VHD to your Boot Menu


Updated July 29, 2009. Auto fill GuiID
CODE


bcdedit /create /d "WinPE 3.0 X86" /application osloader
for /f "tokens=1-3" %%a in ('bcdedit /create /d "WinPE 3.0 X86" /application osloader') do set guid1=%%c
bcdedit /set %guid1% device vhd=[C:]\winpe.vhd

bcdedit /set %guid1% osdevice vhd=[C:]\winpe.vhd

bcdedit /set %guid1% path \windows\system32\winload.exe

bcdedit /set %guid1% systemroot \windows

bcdedit /set %guid1% detecthal yes

bcdedit /set %guid1% winpe yes

bcdedit /displayorder %guid1% /addlast

Exit



Oops I am out of Space for more Pictures. I work something out soon
Picture Goes Here


Now lets copy the files (C:\WinPE_Project\Boot\*.*) to the Newly created VHD
Once the files are copied reboot your PC and At the Boot menu Select WinPE 3.0



Oops I am out of Space for more Pictures. I work something out soon
Picture Goes Here


8 user(s) said "Thank you!" to Morphs for this fantastic post:
amalux, Ariom, ludovici, mixty, Nuno Brito, Philemon, Politecnico di Torino, stranger87
+Quote Post
post Jun 16 2009, 01:06 PM
Post #2
ludovici
Frequent Member   ***
Group: Advanced user

  Joined: 1-November 07 From: France

Posts: 409
Thank(s): 114


France


Object Dock is here : ObjectDock Script

Good Tutorial Morphs wink.gif
+Quote Post
post Jul 9 2009, 08:02 AM
Post #3
toytoy
  
Group: Members

  Joined: 9-July 09
Posts: 1
Thank(s): 0


Netherlands


Works like a charm, but would like to add 2 comments...

1. there is a typemismatch i found out:
In the section "Adding the VHD to your Boot Menu" there is a space missing between systemroot and \windows
command: bcdedit /set {GUI ENTRY} systemroot \windows

And, like me as i didnt know better what was meant by {GUI ENTRY}, sorry im not so used to PE environments, but the GUI ENTRY is created after the first command

bcdedit /create /d "WinPE 3.0 X86" /application osloader

Maybe you can add/change this in your manual?

Pls continue with this manual, its really good!
+Quote Post
post Jul 9 2009, 11:42 AM
Post #4
paraglider
Gold Member   *****
Group: .script developer

  Joined: 12-August 06 From: NC,USA

Posts: 1,117
Thank(s): 161


United States


What advantages does booting from a vhd file give over booting from a wim file?
+Quote Post
post Jul 9 2009, 11:57 AM
Post #5
joakim
Frequent Member   ***
Group: Members

  Joined: 18-April 08 From: Bergen

Posts: 412
Thank(s): 89


Norway


QUOTE (paraglider @ Jul 9 2009, 11:42 AM) *
What advantages does booting from a vhd file give over booting from a wim file?

At least mklink.exe works.
+Quote Post
post Jul 9 2009, 12:09 PM
Post #6
joakim
Frequent Member   ***
Group: Members

  Joined: 18-April 08 From: Bergen

Posts: 412
Thank(s): 89


Norway


And what is written to the local disk (vhd) is not gone with next boot.

So you are facing the same problem as booting winpe from harddisk (over time), as it gets messed up.

Joakim
+Quote Post
post Jul 9 2009, 12:12 PM
Post #7
paraglider
Gold Member   *****
Group: .script developer

  Joined: 12-August 06 From: NC,USA

Posts: 1,117
Thank(s): 161


United States


I presume that's only true if the vhd is hosted on writable media. If its hosted on a DVD then I presume its not writable? Or are writes redirected to ram? Or is it readonly?
+Quote Post
post Jul 10 2009, 09:49 PM
Post #8
Morphs
Newbie   *
Group: Members

  Joined: 23-October 06 From: Atlant GA

Posts: 26
Thank(s): 11


United States


QUOTE (paraglider @ Jul 9 2009, 07:42 AM) *
What advantages does booting from a vhd file give over booting from a wim file?


The only advantage there is to booting to VHD is that It will allow you to make
what ever changes you like, You can install Applications and test, Step by Step
customize you WinPE. Once you complete your Project Load to your Windows 7
and mount the VHD to a Drive. After Mounted use GIMAGEX to capture the boot.wim
Copy the boot wim to your thumb drive where you already have your files. This is a huge
time saver!

Right now I am working on my new site were I plan to make guides and host some files.
It has been hard learning, PHP, MySQL, Apache and Joomla to make the site work the way I want to.
If I had the money I will have go Sharepoint 2007 wish I already know how to configure.
+Quote Post
post Jul 10 2009, 09:56 PM
Post #9
Morphs
Newbie   *
Group: Members

  Joined: 23-October 06 From: Atlant GA

Posts: 26
Thank(s): 11


United States


QUOTE (Morphs @ Jul 10 2009, 05:49 PM) *
The only advantage there is to booting to VHD is that It will allow you to make
what ever changes you like, You can install Applications and test, Step by Step
customize you WinPE. Once you complete your Project Load to your Windows 7
and mount the VHD to a Drive. After Mounted use GIMAGEX to capture the boot.wim
Copy the boot wim to your thumb drive where you already have your files. This is a huge
time saver!

Right now I am working on my new site were I plan to make guides and host some files.
It has been hard learning, PHP, MySQL, Apache and Joomla to make the site work the way I want to.
If I had the money I will have go Sharepoint 2007 wish I already know how to configure.



In reference to toytoy question

CODE

Works like a charm, but would like to add 2 comments...

1. there is a typemismatch i found out:
In the section "Adding the VHD to your Boot Menu" there is a space missing between systemroot and \windows
command: bcdedit /set {GUI ENTRY} systemroot \windows

And, like me as i didnt know better what was meant by {GUI ENTRY}, sorry im not so used to PE environments, but the GUI ENTRY is created after the first command

bcdedit /create /d "WinPE 3.0 X86" /application osloader

Maybe you can add/change this in your manual?

Pls continue with this manual, its really good!


You get the {GUI ENTRY} after running the bcdedit /create /d "WinPE 3.0 X86" /application osloader
You can then copy this {GUI ENTRY} to text file before continuing
I do have a more advance batch file that will do all of this for you, It should work in Windows 7
I will test first then post the code.
+Quote Post
post Aug 14 2009, 11:05 AM
Post #10
mixty
  
Group: Members

  Joined: 24-March 08
Posts: 3
Thank(s): 0


Hong Kong


QUOTE (paraglider @ Jul 9 2009, 08:12 PM) *
I presume that's only true if the vhd is hosted on writable media. If its hosted on a DVD then I presume its not writable? Or are writes redirected to ram? Or is it readonly?

If VHD is hosted on read-only media like a DVD, normally it would fail because disk writing is not redirected to RAM. Anything changes offline or online is done to disk live. But there is a thing in this VHD boot technology called differencing disk; setting parent-child relationship between VHD images, where the parent is never modified, only the child; all writes are redirected to the child. One use is that different users can share the same parent (a predefined environment) with their own child images (their preferred environment and settings).

It also sounds like snapshots of a virtual machine. It helps during configuration and testing of an image by protecting the base while still allowing saving the writes. If things go wrong, simply delete the child and reestablish another child relationship to parent to begin again.
+Quote Post

2 Pages V   1 2 >
Reply to this topic
1 User(s) are reading this topic ()



Collapse

  Topic Replies Topic Starter Views Last Action
No new Topic has attachmentsInstall Windows 7/Vista From USB Drive
Very simple
71 Nuno Brito 35,954 1st September 2010 - 02:34 PM
Last post by: ps2_hacker
No New Posts Intel 82577LM not auto detected / HP 8540w
4 spiffywiffy 148 1st September 2010 - 12:29 PM
Last post by: dera
No New Posts Win7PE Side-by-Side Fix (.NET Framework 2.0 & C++ 2005/2008)
5 AgentGOD 779 30th August 2010 - 06:52 PM
Last post by: vvurat
No New Posts internet problems
1 rjp54 104 30th August 2010 - 02:48 PM
Last post by: Wonko the Sane
No New Posts Win7RescuePE (Part2)
Build a Win7PE RescuePE
13 MedEvil 7,053 23rd August 2010 - 04:46 PM
Last post by: psc