Read full article - http://boot-land.net/forums/index.php?showtopic=8221
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
[attachment=8571:Directory1.png]
Files we need to create for the Windows System32 Folder.
Winpeshl.ini
CODE
[LaunchApp]
AppPath = %SYSTEMDRIVE%\Windows\System32\vpeldr.exe
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"
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 Portable I downloaded this as a Script from Winbuilder, Sorry donât remember
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.
[attachment=8572:ProgramFolder.png]
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
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\)
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
Copy the {GUI ENTRY} From bcdedit /create /d "WinPE 3.0 X86" /application osloader
CODE
bcdedit /create /d "WinPE 3.0 X86" /application osloader
bcdedit /set {GUI ENTRY} device vhd=[C:]\winpe.vhd
bcdedit /set {GUI ENTRY} osdevice vhd=[C:]\winpe.vhd
bcdedit /set {GUI ENTRY} path \windows\system32\winload.exe
bcdedit /set {GUI ENTRY} systemroot\windows
bcdedit /set {GUI ENTRY} detecthal yes
bcdedit /set {GUI ENTRY} winpe yes
bcdedit /displayorder {GUI ENTRY} /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