bishooman Posted November 14, 2009 Posted November 14, 2009 (edited) Dear alli 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\correctionsRequirements:1- Windows AIK from HERE2- FileDisk 1.7 from HERE3- PStart Application Lancher from HEREPart 1: Preparing your Windows PE Enviroment1. Install the Windows AIK using default options.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_x86this will create the Windows PE output in the directory D:\winpe_x86. 3. mount the winoe image so that we can edit itD:\ Program Files\Windows AIKTools\x86\imagex" /mountrw D:\winpe_x86\winpe.wim 1 %D:\winpe_x86\mount4. now will will install FileDisk to our WinPE Enviroment, installing FileDisk involved to setpsa. Copy the Driver "filedisk.sys" to Windows\System32\drivers directoryb. add some registry valuesthis can be done by using the below commandsreg load HKLM\Winpe D:\winpe_x86\mount\Windows\System32\config\Systemregedit /s D:\Winpe3.0\Tools\FileDisk\Filedisk.reg filedisk.reg is in attachmentsreg unload HKLM\Winpe5.now we will copy the STARTNET.CMD to Windows\Syatem32and we will add the rest of our files and folder to D:winpe_x86\ISO folderxcopy D:\Winpe3.0\Tools\Start D:\winpe_x86\ISO\Start\ /s /ecopy D:\Winpe3.0\Tools\Scripts\STARTNET.CMD D:\winpe_x86\mount\Windows\System32\6. now we have to unmout the image and commit changesD:\ Program Files\Windows AIKTools\Tools\x86\imagex /unmount /commit D:\winpe_x86\mount7. now will copy the winpe.wim image to sources folder and name it boot.wimcopy D:\winpe_x86\winpe.wim D:\winpe_x86\ISO\sources\boot.wimand now our Windows PE Enviroment is ready.Part 2: Preparing PStart and our Windows Setup CommandThe windows PE image we just did will boot from USB Flash or Hardisk in 30sec and load PStart.exe so we have to prepare our Setup.cmd file that will partition, format then start winnt32.exe.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.htmlfor that i already added all the needed files in D:\Winpe3.0\Tools\Start\Setup folderthe command i am using here to do the job is XP2003.cmd that will do the folowing1. Set ISO files root2. Set Unattned files root3. 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 XP6. Finaly it will mount you Windows XP iso file and Start the Setup Proccess.SET ISO_PATH=%~d0\Start\ISOSET UNATTEND_PATH=%~d0\Start\Unattendregedit /s fixbootxp2003.regdiskpart /s diskpart.inibootsect /nt52 c:filedisk /mount 0 %ISO_PATH%\%1 /cd V:V:\i386\winnt32 /syspart:c: /tempdrive:c: /makelocalsource /unattend:%UNATTEND_PATH%\%27. Now you have to add a new entry to PStart to launch XP2003.cmd with 2 command parameters 1. ISO file name2.Unattended file nameXP2003.cmd XPSP3.iso Unattended.txtPart 3: Preparing Your USB Flash or HDD and BOOT IT !1. format your usb drive from windows vista/7 open cmd windows and type#first excute this command to check your drive numberlist disk#then use it as below mine was 2diskpartselect disk 2cleancreate partition primaryselect partition 1activeformat fs=ntfsexit2. copy all the files\folders in D:\winppe_x86\ISO to the root of your drive3.copy your XP ISO file to you usb drive in U:\Start\ISO4. boot your USByou 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: drive2. open Setup.cmd and edit the first 3 linesSET WINPETOOLS_DIR=L:\Winpe3.0\Tools <-- path for the tools you downloaded hereSET WINPE_ENV=L:\winpe_x86 <-- path where Winpe Enviroment working directorySET WAIK_DIR=C:\Program Files\Windows AIK <-- path to Windows AIK@ECHO OFFSET WINPETOOLS_DIR=L:\Winpe3.0\ToolsSET WINPE_ENV=L:\winpe_x86SET WAIK_DIR=C:\Program Files\Windows AIKECHO. ECHO Creating Winpe 3.0 Enviroment ...CALL "%WAIK_DIR%\Tools\PETools\copype.cmd" x86 %WINPE_ENV%CLSECHO.ECHO Mounting Winpe Image ..."%WAIK_DIR%\Tools\x86\imagex" /mountrw %WINPE_ENV%\winpe.wim 1 %WINPE_ENV%\mountCLSECHO.ECHO Installing FileDisk Driver...copy %WINPETOOLS_DIR%\FileDisk\filedisk.sys %WINPE_ENV%\mount\Windows\System32\DriversCLSECHO.ECHO Installing FileDisk Registry Values...reg load HKLM\Winpe %WINPE_ENV%\mount\Windows\System32\config\Systemregedit /s %WINPETOOLS_DIR%\FileDisk\Filedisk.regreg unload HKLM\WinpeCLSECHO.ECHO Coping Other Tools..xcopy %WINPETOOLS_DIR%\Start %WINPE_ENV%\ISO\Start\ /s /ecopy %WINPETOOLS_DIR%\Scripts\STARTNET.CMD %WINPE_ENV%\mount\Windows\System32\CLSECHO.ECHO Unmounting Winpe Image ..."%WAIK_DIR%\Tools\x86\imagex" /unmount /commit %WINPE_ENV%\mountCLSECHO.ECHO Coping Winpe Image to ISO\Sources..copy %WINPE_ENV%\winpe.wim %WINPE_ENV%\ISO\sources\boot.wimCLS::OSCDIMG -N -M -O -B%WINPE_ENV%\ETFSBOOT.COM %WINPE_ENV%\ISO %WINPE_ENV%\WINPE.ISO@pauseyou can uncomment the last line to build the project in iso format so you can test it in Virtual PC or Virtual BoxDownload ver0.1 Windows Vista\7 Users should right click and run as administrator Setup.cmd fileTHINGS I WANT TO ADD\UPDATE your Suggestions is more than welcome1- 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 generator4- Give the Project a Name THINGS I AM WORKING ON RIGHT NOW1- Integration of Raid Drivers WITHOUT CHANGING THE ISO2- GUI Tool for the Project3- 64bit setup.exe will not run from 32bit Winpe i am looking for a solution Edited November 17, 2009 by bishooman
ilko_t Posted November 14, 2009 Posted November 14, 2009 Thanks for sharing this, it definitely will help many
bishooman Posted November 14, 2009 Author Posted November 14, 2009 Thanks for sharing this, it definitely will help many you are more than welcome, i learnd alot from your topicts keep up the good job
bishooman Posted November 14, 2009 Author Posted November 14, 2009 Nice. Stickied. jaclazwow!! thanks alot for the stiky man, this will give me extra push to make this better and easier for all
chrime2007 Posted November 15, 2009 Posted November 15, 2009 Hi,first thanks for your great work, Secondly I've got a Question: I am an IT-Professional and want to use the system to install every individual PC. Problem is, that in your diskpart.ini is written, that every data on first partition of disk 0 will be deleted. Some PC have 2 physical disks, one for the Data and the other for the system. How can I specify on wich disk and wich partition windows xp will be installed?You will probably notice that there are more than one question but you may can help me.Thank you
jaclaz Posted November 15, 2009 Posted November 15, 2009 I am an IT-ProfessionalWell, if I were an IT professional , I would look here:V:\i386\winnt32 /syspart:c: /tempdrive:c: /makelocalsource /unattend:%UNATTEND_PATH%\%2and here:#first excute this command to check your drive numberlist disk#then use it as below mine was 2diskpartselect disk 2cleancreate partition primaryselect partition 1activeformat fs=ntfsexitjaclaz
bishooman Posted November 15, 2009 Author Posted November 15, 2009 (edited) Hi,first thanks for your great work, Secondly I've got a Question: I am an IT-Professional and want to use the system to install every individual PC. Problem is, that in your diskpart.ini is written, that every data on first partition of disk 0 will be deleted. Some PC have 2 physical disks, one for the Data and the other for the system. How can I specify on wich disk and wich partition windows xp will be installed?You will probably notice that there are more than one question but you may can help me.Thank youin XP2003.cmd file you can comment the line diskpart /s diskpart.inithen you can do your own custom partitioning and format using diskpart tool to read more about diskpart tool you can chack hereafter that you can run xp2003.cmd to applay the rest of fix and then installalso you may need to change the drive letter in /syspart:c: /tempdrive:c:as jaclaz mensioned if you are installing do a drive other than c:please note that the clean command will delete all the partition on the selected drive s skip this step if you have more than one partition in one single phisical driveGood Luck Edited November 15, 2009 by bishooman
robekia Posted December 4, 2009 Posted December 4, 2009 (edited) @BishoomanThank you for your good IDEA.Unfortunately, failed to install windows XPSP3 to any drive other than C: (with or without updating the diskpart.ini). only success with C: drive.here is my problem with D: drive1- I updated diskpart as following but (active) command wouldn't work and when restart after WINNT32 PC is not booting and giving HALL error:sel disk 0sel par 2activeformat fs=ntfs quickassign letter=d2- Even i didn't use diskpart, the same result.3- There might be some files missing that should be in root of D or C drive before booting.4- Also, Fixboot.reg failed to be mapped to registry, i found the same key in another place in registry but not under (winpe)[HKEY_LOCAL_MACHINE\Winpe\ControlSet001\Services\vds\Alignment]and even updated that key manually, still failed after reboot.please help. Edited December 4, 2009 by robekia
bishooman Posted December 4, 2009 Author Posted December 4, 2009 (edited) Dear robekiaif you succeeded to instal to c: then 1,2,3,4 you are doing correctly.now for installing to D: you have to change this lineV:\i386\winnt32 /syspart:D: /tempdrive:D: /makelocalsource /unattend:%UNATTEND_PATH%\%2changes is in bold you will find this in xp2003.cmdplease report if this worked for you regards Edited December 4, 2009 by bishooman
agni Posted December 5, 2009 Posted December 5, 2009 GUI disk management toolhttp://www.911cd.net/forums//index.php?showtopic=13516Add 64 bit boot.wim as boot64.wim and add an entry to bcdhttp://www.cluberti.com/blog/2009/08/12/ad...oyment-usb-key/Also check thishttp://www.boot-land.net/forums/index.php?showtopic=7721
robekia Posted December 5, 2009 Posted December 5, 2009 Dear robekiaif you succeeded to instal to c: then 1,2,3,4 you are doing correctly.now for installing to D: you have to change this lineV:\i386\winnt32 /syspart:D: /tempdrive:D: /makelocalsource /unattend:%UNATTEND_PATH%\%2changes is in bold you will find this in xp2003.cmdplease report if this worked for you regardsI already tried this before reporting, still failed, windows wouldn't even boot with HALL ErrorAs i mentioned already, there are some steps missing in this particular case.If any member success in this case, please report here with procedure.May be we need to copy some files to the ROOT of drive C even we are installing into any other drive...
ilko_t Posted December 6, 2009 Posted December 6, 2009 Which on is the active partition? Setup expects to find its boot files on the first partition, which is active, said for simplicity, details:http://www.msfn.org/board/usb-multiboot-se...ck-t129454.htmlhttp://www.msfn.org/board/xp-source-2nd-pa...pid-837621.htmlWhat prevents you to start Setup from the first partition, but once on the partitioning screen to select the second one as destination?You'd have to remove completely the unattended section in the answer file, or it will start installing right away in the partition where the temporary folders (~BT and ~LS) are, without getting you to the partition selection screen. Exception is if there is not enough space on that partition as per values in txtsetup.sif, in this case Setup will throw an error for not enough space and let you choose another partition, sending you back to the partitioning screen.I recall a few other switches in winnt32.exe, which may allow source files to be elsewhere, not tested, use winnt32.exe /?.
bishooman Posted December 6, 2009 Author Posted December 6, 2009 (edited) I already tried this before reporting, still failed, windows wouldn't even boot with HALL ErrorAs i mentioned already, there are some steps missing in this particular case.If any member success in this case, please report here with procedure.May be we need to copy some files to the ROOT of drive C even we are installing into any other drive...can you please check if your seconed partion is primaty partition ?are you getting hal.dll error when you are going to GUI Setup or directly after you restart WINPE to get to TXT Setup?? Edited December 6, 2009 by bishooman
robekia Posted December 6, 2009 Posted December 6, 2009 (edited) are you getting hal.dll error when you are going to GUI Setup or directly after you restart WINPE to get to TXT Setup??Directly after I finish with Winnt32.exe and restart WINPE to get to TXT SetupAlso, i tried to format C: and D: then using winnt32.exe from PE to setup XP onto D:I got the error when computer restarts.I Load PE again to check the partitions and i found the following:1- ( C ) drive is totaly empty, no files found even hidden..2- (D) drive has $WIN_NT$.~BT and $WIN_NT$.~LS along with some files on the root.BTW, in PStart, what the command line for installing VISTA will be and how you'll organize the files on USB? Edited December 6, 2009 by robekia
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now