You are on page 1of 3

1

Install Windows XP

Note - If using grub4dos or syslinux version 3.81/3.82 (and possibly newer versions) it is not
possible to install Windows XP via RIS if using Windows XP source files. A workaround is detailed
here

For a more detailed explanation of the files required to install Windows XP via RIS please read the
Windows 2000/XP/2003 PXE Files and Winnt.sif sections.

 Copy the i386 folder and all sub-folders from Windows XP source to
C:\PXE\tftpboot\winxp\  (tested with Windows XP SP3 source).
 Follow the instructions in BINL Service section to set up the BINL service.
 Copy all .sys files from C:\PXE\binl\DRIVERS\  to C:\PXE\tftpboot\winxp\i386\ .

Steps 1-7 (below) can be automated by running 6a_RIS.cmd

1. Extract startrom.n12 from C:\PXE\tftpboot\winxp\i386\STARTROM.N1_ to


C:\PXE\tftpboot\ . Open a command prompt and enter the following command -
C:\PXE\tools\7za.exe e C:\PXE\tftpboot\winxp\i386\startrom.n1_ -o"C:\PXE\tftpboot"
startrom.n12
2. Extract setupldr.exe from C:\PXE\tftpboot\winxp\i386\setupldr.ex_ to C:\PXE\tftpboot\  by
entering the following command -
C:\PXE\tools\7za.exe e C:\PXE\tftpboot\winxp\i386\setupldr.ex_ -o"C:\PXE\tftpboot"
setupldr.exe
3. Copy ntdetect.com from C:\PXE\tftpboot\winxp\i386\  to C:\PXE\tftpboot\ 
copy C:\PXE\tftpboot\winxp\i386\ntdetect.com C:\PXE\tftpboot
4. Open notepad and enter the following text, then save as C:\PXE\tftpboot\winnt.sif (remember
to change the IP address for the server if it was not set as 192.168.2.2 - refer to Winnt.sif
section) -

[SetupData]
OsLoadOptions = "/fastdetect"
; Needed for first stage
SetupSourceDevice = "\Device\LanmanRedirector\192.168.2.2\tftpboot\winxp"

[data]
floppyless = "1"
msdosinitiated = "1"
; Needed for second stage
OriSrc = "\\192.168.2.2\tftpboot\winxp\I386"
OriTyp = "4"
LocalSourceOnCD = 1
DisableAdminAccountOnDomainJoin = 1
AutoPartition=0

[UserData]
; ProductID=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
ComputerName="*"

5. Rename C:\PXE\tftpboot\startrom.n12 as startrom.0


6. Rename C:\PXE\tftpboot\setupldr.exe as ntldr
2
7. Add a menu entry -
o For pxelinux, add the following entries to C:\PXE\tftpboot\pxelinux.cfg\default  -

LABEL xp
MENU LABEL Install Windows XP
KERNEL startrom.0

o For grub4dos, add the following entries to C:\PXE\tftpboot\menu.lst\default  -

title Install Windows XP


pxe keep
chainloader --raw (pd)/startrom.0

If you plan to add options to install another operating system via RIS or to add a Windows XP/2003
based WinPE image then follow the instructions below as ntdetect.com, ntldr, startrom.0 and
winnt.sif will need to be renamed and the embedded settings within these files will need editing.

To automate the following steps run 6a_RIS.cmd to complete steps 1-6, then run 6c_RIS.cmd -

 Follow steps 1 to 6 (see above) to extract the required files and create winnt.sif
 Rename C:\PXE\tftpboot\startrom.0 using a filename with a .0 file extention - e.g. xp001.0.
 Rename C:\PXE\tftpboot\ntldr using a 5.0 character filename - e.g. xp001. Note - the new
filename must contain exactly five letters/characters and must not have a file extention
 Rename C:\PXE\tftpboot\winnt.sif using a 5.3 character filename - e.g. xp001.sif.
 Rename C:\PXE\tftpboot\ntdetect.com using a 8.3 character filename - e.g. xp001ntd.com.
 Download gsar and copy it to C:\PXE\tools\ directory
 Edit C:\PXE\tftpboot\xp001.0 and replace the ntldr text string with xp001 - this will change
the embedded settings and will load C:\PXE\tftpboot\xp001 (renamed setupldr.exe/ntldr).
Open a command prompt and enter the following command -
C:\PXE\tools\gsar.exe -i -sntldr -rxp001 C:\PXE\tftpboot\xp001.0 -o
 Edit C:\PXE\tftpboot\xp001 and replace the winnt.sif text string with xp001.sif. Open a
command prompt and enter the following command -
C:\PXE\tools\gsar.exe -i -swinnt.sif -rxp001.sif C:\PXE\tftpboot\xp001 -o
 Edit C:\PXE\tftpboot\xp001 and replace the ntdetect.com text string with xp001ntd.com.
Open a command prompt and enter the following command -
C:\PXE\tools\gsar.exe -i -sntdetect.com -rxp001ntd.com C:\PXE\tftpboot\xp001 -o
 Add a menu entry -
o For pxelinux, add the following entries to C:\PXE\tftpboot\pxelinux.cfg\default  -

LABEL xp001
MENU LABEL Install Windows XP
KERNEL xp001.0

o For grub4dos, add the following entries to C:\PXE\tftpboot\menu.lst\default  -

title Install Windows XP


pxe keep
chainloader --raw (pd)/xp001.0

To install XP to a client PC ensure that C:\PXE\tftpd32\tftpd32.exe and C:\PXE\binl\binlsrv.exe


have been started, then boot the client PC using PXE boot option and select the Install Windows XP
menu option.
3

You might also like