Jump to content

Installing Winxp via winnt32 under Winpe v2.0 (Vista PE)


kyor

Recommended Posts

1. I can't find "bootsect.exe" on my UFD.

I followed the steps from WAIK Walkthrough "Create a Bootable Windows PE RAM Disk on UFD",

(In LRMOPK_TW.iso, we can find bootsect.exe in the BOOT folder)

but I didn't find bootsect.exe in the BOOT folder on my UFD.

So I copied it from "C:\Program Files\Windows AIK\Tools\PETools\x86" to BOOT folder.

That's correct you have to copy it from your opk kit to your WinPE CD or to a network share.

2. The winnt32.exe will close after "Preparing installation".

I followed the steps you mentioned above,

I run winnt32.exe without unattended file,

I typed the regist key then the setup program went on.

But after "Preparing installation", the setup program closed and return to the command line promote.

could somebody do me a favort?

I've bothered about this for months .

Normaly, after typing in the reg key the setup Program copies the necessary files to your harddisk and

return to the command prompt. after that you have to exit winpe. type exit in winpe and remove your winpe source (i.e. USB Stick, CD)

Hi,kyor

Thanks for your help.

Now I can complete my winpe UFD.

By the way,at first I typed the following commond

%SOURCE%\i386\winnt32.exe /syspart:c: /unattend:%SOURCE%\i386\WINNT.SIF

After the computer reboot, the setup program asked me to put "windows xp sp2" setup cd into the cdrom.

So I used /makelocalsource and /tempdrive:c: parameters,the full commond is

%SOURCE%\i386\winnt32.exe /syspart:c: /unattend:%SOURCE%\i386\WINNT.SIF /makelocalsource /tempdrive:c:

the unattend setup went on successfully, just like it run from unattend setup CD.

Is it possible run a unattend Xp setup under winpe 2.0 ram disk on UFD without copying all source files to the Hard disk?

Link to comment
Share on other sites


  • 2 weeks later...

Did you try just creating another folder in your mount or mount\Windows folder before the Prepare your image step?

This would compress it on the .WIM file ... it ceratinly would increase the boot time.

I haven't seen if there is a maximum size for the RAM Drive used (I don't think that information is in TFM)

I am actually going to try this today.

Edited by twalk482
Link to comment
Share on other sites

So, this worked (having the i386 source on the RAMDrive). However, I did not have the option of a USB Key ... So, I created an ISO

I added the logic to get the "WINSRC" directory on the RAMDrive to the batch file I have to create WinPE 2.0

Should be adble to modify the SET statements here to make it work for you

SET ARCH=x86
SET UFDRIVE=G:
SET WAIKTOOLS_DIR=C:\Program Files\Windows AIK\Tools
SET PETOOLS_DIR=%WAIKTOOLS_DIR%\PETools
SET PEROOT_DIR=D:\WINPE2.0
SET PETEMP_DIR=%PEROOT_DIR%\winpe_%ARCH%
SET WINSRC_DIR=D:\2003R2
SET STARTNET_FILE=D:\STARTNET.CMD

IF EXIST %PETEMP_DIR% (RD /S /Q %PETEMP_DIR%)
MD %PETEMP_DIR%
MD %PETEMP_DIR%\ISO
MD %PETEMP_DIR%\MOUNT

COPY "%PETOOLS_DIR%\%ARCH%\BOOTMGR" "%PETEMP_DIR%\ISO"
COPY "%PETOOLS_DIR%\%ARCH%\BOOTMGR.EFI" "%PETEMP_DIR%\ISO"
COPY "%PETOOLS_DIR%\%ARCH%\BOOT\ETFSBOOT.COM" "%PETEMP_DIR%"
COPY "%PETOOLS_DIR%\%ARCH%\BOOT\EFISYS.BIN" "%PETEMP_DIR%"
XCOPY /CHERKY "%PETOOLS_DIR%\%ARCH%\BOOT" "%PETEMP_DIR%\ISO\BOOT\"
XCOPY /CHERKY "%PETOOLS_DIR%\%ARCH%\EFI" "%PETEMP_DIR%\ISO\EFI\"
MKDIR "%PETEMP_DIR%\ISO\SOURCES"
COPY "%PETOOLS_DIR%\%ARCH%\WINPE.WIM" "%PETEMP_DIR%\WINPE.WIM"
COPY "%PETOOLS_DIR%\%ARCH%\WINPE.WIM" "%PETEMP_DIR%\ISO\SOURCES\BOOT.WIM"
"%WAIKTOOLS_DIR%\%ARCH%\IMAGEX" /MOUNTRW %PETEMP_DIR%\WINPE.WIM 1 %PETEMP_DIR%\MOUNT
"%PETOOLS_DIR%\PEIMG" /install=WinPE-HTA-Package %PETEMP_DIR%\MOUNT\WINDOWS
"%PETOOLS_DIR%\PEIMG" /install=WinPE-MDAC-Package %PETEMP_DIR%\MOUNT\WINDOWS
"%PETOOLS_DIR%\PEIMG" /install=WinPE-Scripting-Package %PETEMP_DIR%\MOUNT\WINDOWS
"%PETOOLS_DIR%\PEIMG" /install=WinPE-XML-Package %PETEMP_DIR%\MOUNT\WINDOWS
"%PETOOLS_DIR%\PEIMG" /LIST %PETEMP_DIR%\MOUNT\WINDOWS
COPY "%WAIKTOOLS_DIR%\%ARCH%\IMAGEX.EXE" %PETEMP_DIR%\ISO\
ECHO D|XCOPY /CHERKYS "%WAIKTOOLS_DIR%\%ARCH%\SERVICING" %PETEMP_DIR%\ISO\SERVICING
COPY %STARTNET_FILE% %PETEMP_DIR%\MOUNT\WINDOWS\SYSTEM32
MD %PETEMP_DIR%\MOUNT\WINSRC\I386
ECHO D|XCOPY /CHERKYS "%WINSRC_DIR%\I386\*.*" %PETEMP_DIR%\MOUNT\WINSRC\I386
"%PETOOLS_DIR%\PEIMG" /PREP /F %PETEMP_DIR%\MOUNT\WINDOWS
:UNMOUNT
"%WAIKTOOLS_DIR%\%ARCH%\IMAGEX" /UNMOUNT %PETEMP_DIR%\MOUNT /COMMIT
COPY %PETEMP_DIR%\WINPE.WIM %PETEMP_DIR%\ISO\SOURCES\BOOT.WIM
:COPYUFD
XCOPY /CHERKYS %PETEMP_DIR%\*.* %UFDRIVE%
GOTO :END
:MAKEISO
OSCDIMG -N -M -O -B%PETEMP_DIR%\ETFSBOOT.COM %PETEMP_DIR%\ISO %PETEMP_DIR%\WINPE_%ARCH%.ISO
:END

Here would be the line(s) that I added to my custom STARTNET.CMD

CD /D X:\WINSRC\i386

WINNT32.EXE /DUDISABLE /SX:\WINSRC\i386 /SYSPART:C /TEMPDRIVE:C /MAKELOCALSOURCE /UNATTEND:C:\UNATTEND.TXT

Link to comment
Share on other sites

  • 1 month later...

I am currently having problems with WinPE 2.0 and XP install. I am trying to use one WinPE disk to install both XP and Vista. I have the disk set so that the Vista install initiates. Then I create the partitions I want through Vista Setup. If I hit next then Vista installs on the C: Partition. If I exit the Vista Installation after the partitions are created then XP tries to install on the C: Partition.

After creating the partitions and exiting the Vista Setup I am sitting with a 40 GB C Partition and a 120 GB D Partition. I then run the following commands:

Diskpart

Select Disk 0

Select Partition 1

Assign Letter C

Active

Exit

format c: /fs:ntfs /q /y /v:Boot

\\XP\I386\winnt32 /s:\\XP\I386 /unattend:\\XP\I386\winnt.sif /dudisable /syspart:c

This copies over the installation files for Windows XP to the local machine. The computer is then restarted

Immediately following the POST i receive the following message:

A disk read error occurred

Press Ctrl+Alt+Del to restart

I tried updating the bios of the motherboard and using bootsect.exe /nt52 c: /force, and changing the disk type to Auto, CHS, Large, LHS

Ive also integrated the following registry entries into my WinPE disk

reg load HKLM\PE-SYS c:\Winpe_x86\Mount\Windows\system32\config\system

Reg Add "HKLM\PE-SYS\ControlSet001\Services\vds\Alignment" /t Reg_Dword /v LessThan4GB /d 0 /f

Reg Add "HKLM\PE-SYS\ControlSet001\Services\vds\Alignment" /t Reg_Dword /v Between4_8GB /d 0 /f

RegAdd "HKLM\PE-SYS\ControlSet001\Services\vds\Alignment" /t Reg_Dword /v Between8_32GB /d 0 /f

Reg Add "HKLM\PE-SYS\ControlSet001\Services\vds\Alignment" /t Reg_Dword /v GreaterThan32GB /d 0 /f

reg unload HKLM\PE-SYS

All result in the same error

Any ideas?

Edited by toastycheese678
Link to comment
Share on other sites

I am currently having problems with WinPE 2.0 and XP install. I am trying to use one WinPE disk to install both XP and Vista. I have the disk set so that the Vista install initiates. Then I create the partitions I want through Vista Setup. If I hit next then Vista installs on the C: Partition. If I exit the Vista Installation after the partitions are created then XP tries to install on the C: Partition.

After creating the partitions and exiting the Vista Setup I am sitting with a 40 GB C Partition and a 120 GB D Partition. I then run the following commands:

Diskpart

Select Disk 0

Select Partition 1

Assign Letter C

Active

Exit

format c: /fs:ntfs /q /y /v:Boot

\\XP\I386\winnt32 /s:\\XP\I386 /unattend:\\XP\I386\winnt.sif /dudisable /syspart:c

This copies over the installation files for Windows XP to the local machine. The computer is then restarted

Immediately following the POST i receive the following message:

A disk read error occurred

Press Ctrl+Alt+Del to restart

I tried updating the bios of the motherboard and using bootsect.exe /nt52 c: /force, and changing the disk type to Auto, CHS, Large, LHS

Ive also integrated the following registry entries into my WinPE disk

reg load HKLM\PE-SYS c:\Winpe_x86\Mount\Windows\system32\config\system

Reg Add "HKLM\PE-SYS\ControlSet001\Services\vds\Alignment" /t Reg_Dword /v LessThan4GB /d 0 /f

Reg Add "HKLM\PE-SYS\ControlSet001\Services\vds\Alignment" /t Reg_Dword /v Between4_8GB /d 0 /f

RegAdd "HKLM\PE-SYS\ControlSet001\Services\vds\Alignment" /t Reg_Dword /v Between8_32GB /d 0 /f

Reg Add "HKLM\PE-SYS\ControlSet001\Services\vds\Alignment" /t Reg_Dword /v GreaterThan32GB /d 0 /f

reg unload HKLM\PE-SYS

All result in the same error

Any ideas?

There is a website that hosts hotfixes that Microsoft doesn't give out publicly:

In this case, you can get this:

http://support.microsoft.com/kb/931760

from here:

http://thehotfixshare.net/download/index.p...h/Windows%20XP/

Try slipstreaming this fix into your installation to avoid the registry edits.

Link to comment
Share on other sites

I'm having an extremely weird problem when I try to install XP using a network share and WinPE 2.0.

Here's what I do (even after using the fix I posted above):

diskpart

select disk 0

clean

create partition primary

active

assign letter c

format

exit

net use t: \\%sharename%\xppro <<asks for credentials...I enter them

t:\

cd wkst << has an i386 folder as well as several text files used as unattended setup files.

wkst32.bat %textfile%.txt

Inside the wkst32.bat:

@echo off

SET TRACK=%1

echo %TRACK%.txt

t:\i386\winnt32 /m:t:\i386\ /syspart:c: /tempdrive:c: /unattend:t:\wkst\%TRACK%.txt

exit

Anyway, after running this, the setup files copy correctly, then the textmode part runs correctly. Once the GUI comes up, I get the following error message:

Fatal Error-

SXS.DLL: Syntax error in manifest or policy file C:\$win_nt$.~ls\I386\asms\6000\MSFT\VCRTL\VCRTL.MAN on LINE 11

A component's file does not match the verification information present in the component manifest

Now here's the kicker:

The EXACT same source files work fine when using a variation of a DOS-based Ultimate Boot CD. The only difference is that winnt.exe is used with a wkst.bat file:

@echo off

SET TRACK=%1

echo %TRACK%.txt

t:\i386\winnt /s:t:\i386 /t:c:\ /u:t:\wkst\%TRACK%.txt

Any ideas?

Link to comment
Share on other sites

Never mind--I solved the problem.

wkst32 edits:

Omissions in bold. Additions in italics

t:\i386\winnt32 /m:t:\i386\ /syspart:c: /tempdrive:c: /makelocalsource /unattend:t:\wkst\%TRACK%.txt

In any case, slipstreaming the hotfix for the Vista diskpart craziness combined with this worked like a charm!

Edited by killerb255
Link to comment
Share on other sites

  • 4 weeks later...

Someone here who wants to make a little walkthrough how to use winpe2.0 with xp setup.. I am looking for a stepbystep guide - otherwise I know i will not suceed in doing this ;(

Link to comment
Share on other sites

@HJW

Summary

do the following only for xp and win2003 installations.

On vista you will get performance problems with raid controllers

if you use the fixbootxp.reg

1. run winpe 2.0

2. regedit /s fixbootxp.reg (attached in this post)

3. use diskpart (

you can use diskpart /s diskpart.ini if you want to format your HDD automatically)

4. bootsect /nt52 c: (you get bootsect from OPK Kit)

5. start winnt32.exe

example t:\i386\winnt32 /m:t:\i386\ /syspart:c: /tempdrive:c: /makelocalsource /unattend:t:\unattend.txt

HINT:

When you do this kind of installation you get a error message in Windows when it's installed (see picture). But this is normal and doesn't affect

this Installation. I haven't found another way. When you use the chkdsk in GUI Mode you didn't get a error message

http://support.microsoft.com/kb/931760/en

Greetings kyor

fixbootxp.reg

diskpart.ini

post-33407-1183567914_thumb.jpg

Edited by kyor
Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...

Heh old thread... anyway i created an XP install image using imagex and winpe2.0

I programed a simple GUI to execute commands like quickformat diskpart and bootsect and such...

anyway.. i use an nLited XP install so its all automated so to prep a drive to capture the install image....

run: winnt32 /unattend:winnt.sif /makelocalsource /noreboot

(you could just run winnt32 /makelocalsource and enter your licence info and whatever...)

then I use ImageX to capture that image

and what i end up with is an image all ready for deployment under winpe2.0

then when i pop in my disc it boots to winpe and my custom shell launcher doober comes up...

Diskpart (or just a quick format if the partition exists)

apply image

bootsect /nt52

more or less three clicks and a Y (to confirm i want to quick format) and i am ready to reboot and it does the normal blue textmode then gui then done.. in like less then 25 min...

My PE Shell has the following commands

Apply image (I call it Install Windows)

Quick Format C:

Run Disk Partitioner (Diskpart till i find a WinPE2 compadible diskpart gui)

Apply NT5x Boot Sector (bootsect /nt52)

Open Command Prompt (cmd.exe)

the kickass ImageX GUI (for imageing jobs beyond the simple apply image)

Open Registry Editor (regedit.exe) Everyone needs a registry editor avilable

and a readme.. which i havent programed yet because im a lazy son of a b***h

it looks nifty the coding is horrific but it all works

but that winnt32 /makelocalsource then capture with ImageX should work... just be sure you apply the NT5x bootsector so it loads NTLDR if you format and not do bootsect it will want to run BOOTMGR and windows xp doesnt come with it...

this method should work with win2k and server03 also

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Hi :hello: ,

I'm trying to create a server deployment image for Windows 2003 with WinPE 2.1.

My steps are:

1. Boot into Winpe2.1

2. delete partition using diskpart

3. configure HP Disk Array configuration and create an array

4. create new partition

5. format disk

6. install from commandline (X:\W2K3\I386\WINNT32.EXE /syspart:c: /s:X:\W2K3\I386 /unattend:X:\DiskProfilesA\unattend.txt /makelocalsource

step 2 to 6 is run from a vbscript that I had created and compiled as a .exe file and being called out from

startnet.cmd. The W2K3 installation files are copied to a new folder named W2K3 under the winpe\mount folder.

My problem is when I include the W2K3 folder, winpe will load but immediately finish loading, it prompt error and not

execute the startnet.cmd. (I guess it straight jump to the w2k3 setup, but at that point the harddisk is not parepare yet

hence it gives error)

But if I exclude the W2K3 folder, I have no problem, winpe will load then trigger the startnet.cmd and I can type and execute some array configuration manually from the command prompt.

Is anyone have any idea why I can't include the W2K3 installation files together with winpe?

I have no problem with this when I use winpe 2005 in our previous image version.

Thanks!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...