i have been reading alot in the last few days and i want to share my findings with you all.
this will be a small project and it will be updated frequently so please show support by testing it and give advices\corrections

Requirements:
1- Windows AIK from HERE
2- FileDisk 1.7 from HERE
3- PStart Application Lancher from HERE
Part 1: Preparing your Windows PE Enviroment
2. Create Winpe 3.0 environment using the Windows AIK by excuting this command :
D:\ Program Files\Windows AIK\Tools\PETools\copype.cmd x86 D:\winpe_x86
this will create the Windows PE output in the directory D:\winpe_x86.
3. mount the winoe image so that we can edit it
D:\ Program Files\Windows AIKTools\x86\imagex" /mountrw D:\winpe_x86\winpe.wim 1 %D:\winpe_x86\mount
4. now will will install FileDisk to our WinPE Enviroment, installing FileDisk involved to setps
b. add some registry values
this can be done by using the below commands
reg load HKLM\Winpe D:\winpe_x86\mount\Windows\System32\config\System regedit /s D:\Winpe3.0\Tools\FileDisk\Filedisk.reg filedisk.reg is in attachments reg unload HKLM\Winpe
5.now we will copy the STARTNET.CMD to Windows\Syatem32
and we will add the rest of our files and folder to D:winpe_x86\ISO folder
xcopy D:\Winpe3.0\Tools\Start D:\winpe_x86\ISO\Start\ /s /e copy D:\Winpe3.0\Tools\Scripts\STARTNET.CMD D:\winpe_x86\mount\Windows\System32\
6. now we have to unmout the image and commit changes
D:\ Program Files\Windows AIKTools\Tools\x86\imagex /unmount /commit D:\winpe_x86\mount
7. now will copy the winpe.wim image to sources folder and name it boot.wim
copy D:\winpe_x86\winpe.wim D:\winpe_x86\ISO\sources\boot.wim
and now our Windows PE Enviroment is ready.
Part 2: Preparing PStart and our Windows Setup Command
installing XP from Windows PE will require some special registry entries and format style in our Windows PE Enviroment for more details check this thread http://www.msfn.org/board/installing-winxp...-pe-t88270.html
for that i already added all the needed files in D:\Winpe3.0\Tools\Start\Setup folder
the command i am using here to do the job is XP2003.cmd that will do the folowing
1. Set ISO files root
2. Set Unattned files root
3. will the needed registry entries needed to correctly partion your harddisk for Windows XP usage check this (http://support.microsoft.com/kb/931760)
4. will partition and format usr hardisk using diskpart.exe and diskpart.ini the holds the format script NOTE: the included diskpart.ini will format your drive C:
5. you need also to fix the boot sector after you format your hardisk to be compatibale with Windows XP
6. Finaly it will mount you Windows XP iso file and Start the Setup Proccess.
SET ISO_PATH=%~d0\Start\ISO SET UNATTEND_PATH=%~d0\Start\Unattend regedit /s fixbootxp2003.reg diskpart /s diskpart.ini bootsect /nt52 c: filedisk /mount 0 %ISO_PATH%\%1 /cd V: V:\i386\winnt32 /syspart:c: /tempdrive:c: /makelocalsource /unattend:%UNATTEND_PATH%\%2
7. Now you have to add a new entry to PStart to launch XP2003.cmd with 2 command parameters
2.Unattended file name
XP2003.cmd XPSP3.iso Unattended.txt
Part 3: Preparing Your USB Flash or HDD and BOOT IT !
#first excute this command to check your drive number list disk #then use it as below mine was 2 diskpart select disk 2 clean create partition primary select partition 1 active format fs=ntfs exit
2. copy all the files\folders in D:\winppe_x86\ISO to the root of your drive
3.copy your XP ISO file to you usb drive in U:\Start\ISO
4. boot your USB
you will find in the attachment all the files needed and Setup.cmd the will do all that job for you, to run it correcttly you need to do the folowing:
1. extract winpe3.0 some where in c: or d: drive
2. open Setup.cmd and edit the first 3 lines
SET WINPETOOLS_DIR=L:\Winpe3.0\Tools <-- path for the tools you downloaded here
SET WINPE_ENV=L:\winpe_x86 <-- path where Winpe Enviroment working directory
SET WAIK_DIR=C:\Program Files\Windows AIK <-- path to Windows AIK
@ECHO OFF SET WINPETOOLS_DIR=L:\Winpe3.0\Tools SET WINPE_ENV=L:\winpe_x86 SET WAIK_DIR=C:\Program Files\Windows AIK ECHO. ECHO Creating Winpe 3.0 Enviroment ... CALL "%WAIK_DIR%\Tools\PETools\copype.cmd" x86 %WINPE_ENV% CLS ECHO. ECHO Mounting Winpe Image ... "%WAIK_DIR%\Tools\x86\imagex" /mountrw %WINPE_ENV%\winpe.wim 1 %WINPE_ENV%\mount CLS ECHO. ECHO Installing FileDisk Driver... copy %WINPETOOLS_DIR%\FileDisk\filedisk.sys %WINPE_ENV%\mount\Windows\System32\Drivers CLS ECHO. ECHO Installing FileDisk Registry Values... reg load HKLM\Winpe %WINPE_ENV%\mount\Windows\System32\config\System regedit /s %WINPETOOLS_DIR%\FileDisk\Filedisk.reg reg unload HKLM\Winpe CLS ECHO. ECHO Coping Other Tools.. xcopy %WINPETOOLS_DIR%\Start %WINPE_ENV%\ISO\Start\ /s /e copy %WINPETOOLS_DIR%\Scripts\STARTNET.CMD %WINPE_ENV%\mount\Windows\System32\ CLS ECHO. ECHO Unmounting Winpe Image ... "%WAIK_DIR%\Tools\x86\imagex" /unmount /commit %WINPE_ENV%\mount CLS ECHO. ECHO Coping Winpe Image to ISO\Sources.. copy %WINPE_ENV%\winpe.wim %WINPE_ENV%\ISO\sources\boot.wim CLS ::OSCDIMG -N -M -O -B%WINPE_ENV%\ETFSBOOT.COM %WINPE_ENV%\ISO %WINPE_ENV%\WINPE.ISO @pause
you can uncomment the last line to build the project in iso format so you can test it in Virtual PC or Virtual Box
Download ver0.1 Windows Vista\7 Users should right click and run as administrator Setup.cmd file
THINGS I WANT TO ADD\UPDATE your Suggestions is more than welcome
1- Using a GUI Disk Managment Tool that is Free and easy to use (for XP/2003 instlations)
2- Replacing PStart with more advanced specific application (maybe i will code it my self)
3- adding on the fly unattented file generator
4- Give the Project a Name
THINGS I AM WORKING ON RIGHT NOW
1- Integration of Raid Drivers WITHOUT CHANGING THE ISO
2- GUI Tool for the Project
3- 64bit setup.exe will not run from 32bit Winpe i am looking for a solution
This post has been edited by bishooman: 16 November 2009 - 07:09 PM



Help
Back to top










