Full Version of this article can be found here

Windows XP Driver Slipstreaming + Unattended Install

After slipstreaming my SP2 CD I decided to take things a bit further and be able to automate my installation. Microsoft has everything setup so that you can automate the install process for Windows. You can even have it install a bunch of third party applications straight from the windows install CD.

First of all copy all of the contents of your windows CD to C:\winxp after this is completed download this program. This is the easiest way to create the file(s) that you'll be needing. This helps automate a lot of the install process. Ignore the tweaks part cause I won't be covering that in this article.

Open up winntsif.exe found in this file. (You'll need to have the .net framework installed on your system). Expand the Configuration section like this;

Go through each of the settings. Under Unattended you'll see where you can set the driver path, but for now lets just skip that and leave it as the default. I'll show you more to do with that later. After you've set all of that optional stuff up click on Finish which is just above Registry Tweaks.

Or you can just paste this into a file called winntsif.txt and rename it to winnt.sif. I ran into some problems when I tried to go directly to winnt.sif without going through a .txt file first. The winnt.sif file goes in your i386 directory.Here's my settings;

;SetupMgrTag
[Data]
AutoPartition=0
MsDosInitiated="0"
UnattendedInstall="Yes"

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINDOWS
UnattendSwitch="yes"
FileSystem=*
OemPnPDriversPath=drivers\000;drivers\001;drivers\002;drivers\003;drivers\004;

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=NO
OEMSkipRegional=1
TimeZone=35
OemSkipWelcome=1

[UserData]
ProductKey=*****-*****-*****-*****-*****
FullName="Martin"
OrgName="IANAG"
ComputerName=Martin

[Display]
BitsPerPel=32
Xresolution=1024
YResolution=768

[SetupMgr]
DistFolder=D:\windist
DistShare=windist

[Branding]
BrandIEUsingUnattended=Yes

[URL]
Home_Page=http://www.ianag.com

[Proxy]
Proxy_Enable=0
Use_Same_Proxy=1

[Identification]
JoinWorkgroup=IANAG

[Networking]
InstallDefaultComponents=Yes

[Componants]
msmsgs=off
msnexplr=off
OEAccess=off
media_clips=off
media_utopia=off
Accessopt=off
AutoUpdate=off
templates=off
fax=off
Clipbook=off
charmap=off
hypertrm=off
rec=off
pinball=off
freecell=off
minesweeper=off
solitaire=off
spider=off
hearts=off
zonegames=off

[Shell]
DefaultStartPanelOff=Yes
DefaultThemesOff=Yes

Now that we have that I'll show you what we're doing with the drivers. Create a directory called C:\winxp\$OEM$\$1\drivers\ In my case I'm using an Nforce board with an Nvidia graphics card. The Nforce chipset package has old display drivers in them so I would suggest NOT installing the display drivers from within the Nforce driver package. Extract the chipset driver package instead of just running the installer. You can use a program like winrar to extract them all to a folder. Inside of that folder you'll see alot of files and folders, most of which we don't need.

The chipset specific drivers should always come first. By putting them in number directories it guarantees things are installed in the right order.

For Nforce users;

Move all of the files within SMBus to C:\winxp\$OEM$\$1\drivers\000
Move all of the files within MemCtl to C:\winxp\$OEM$\$1\drivers\001
Move all of the files within IDE\WinXP to C:\winxp\$OEM$\$1\drivers\002
003 will be your Graphics.
Move all of the files within AudioDrv to C:\winxp\$OEM$\$1\drivers\004

That's all of the Nforce drivers I need. If you're using the onboard Ethernet then of course throw that on as 005

Since I'm not using the display drivers included with the Nforce package I'll download the latest, extract them and copy all of the nv4_* files to my C:\winxp\$OEM$\$1\drivers\003 directory. All of the other stuff in that directory you don't really need.

Next I'll grab my mouse Drivers. I'm using a Logitech MX700 so I had to download the overblown mouseware package, extract it and move the win2k_xp contents to my C:\winxp\$OEM$\$1\drivers\005

Everything else I have I'm letting the windows defaults handle. Anything like TV Tuners, keyboards, webcams or anything else that you may need drivers for go ahead and create additional directories for them. Keep them number in the order that you would like them to be installed.

This method will only grab the drivers, and not the full control panels. You'll have to do something different to get the full blown software package to be install by the windows installer.

Editing the winnt.sif file

OemPnPDriversPath=drivers\000;drivers\001;drivers\002;drivers\003

Now you'll need to modify this line from above. The default for winnt.sif is OemPnPDriversPath=Drivers\Catalyst3_6\2KXP_INF;Drivers\asus\sound\

All you have to do is separate each driver with a semicolon and list every driver you want it to install.

After that's been edited you're almost ready to burn the CD!

Make your CD Bootable

ISOBuster can be downloaded here.

In order to make this new CD bootable we'll need to pull out ISObuster. when you open the app select which drive your CD is in and browse to where it says bootable CD. Then you'll see the files listed below. The one you need is the MS Corp one. Right click on it. and select extract. Save it to a folder called C:\winxp-boot. That's all we need from ISObuster.

EZ CD 5

File --> New CD --> Bootable CD

On that screen set bootable CD type to no emulation
Load Segment to 0x7c0
Sector Count to 4
Click Browse
Browse to C:\winxp boot\Microsoft Corporation.img Click on open

File --> CD Project Properties

The Volume Label MUST be set
Win XP Pro should be WXPCCP_EN
Win XP Home should be WXHCCP_EN
Win XP Home OEM should be WXHOEM_EN
Win XP Pro OEM should be WXPOEM_EN

File system must be ISO9660
Physical Format; Mode 1: CDROM

On the file types tab;
Select Add all files
Uncheck the Do not add boxes

Put all the files in and burn using disc at once.

Nero

File--> New then select boot cd

Under source of boot image data select image file and browse to the file C:\winxp boot\Microsoft Corporation.img file
Set kind of emulation to no emulation.
Load segments to 07C0
Number of loaded sectors to 4

Switch to the ISO tab

This is where you set the Volume Lable
Win XP Pro should be WXPCCP_EN
Win XP Home should be WXHCCP_EN
Win XP Home OEM should be WXHOEM_EN
Win XP Pro OEM should be WXPOEM_EN

Select Burn and choose disc at once and put all the files in and BURN!