Drivers via CD
In this section, we will complete the same process as Drivers via WINNT.SIF except that they will install from CD. This will decrease the amount of time setup requires to complete, and depending on the number of drivers you have will also simplify the process slightly.
This whole method is all made possible by Pyron who created these few small programs for use in this process. The original forum thread can be found here. You will also need to download these following files, and save them in a temporary location:
I supposed this is a good time for a brief outline of what you're about to do. Basically, you're going to create the same folder structure as in Drivers via WINNT.SIF. You're then going to replace SETUP.EX_ in your Windows Source with the one you just downloaded. Make a few entries in TXTSETUP.SIF and your drivers will be good to go.
» How to prepare your drivers
All drivers are packaged differently, which is why we can't make a guide for every driver. But most of them can be extracted using extraction software and will contain one, or several INF files inside.
Create a base driver folder in your Windows Source location (it does NOT have to be in $OEM$ at all), for example %WINSRC%\Drivers with %WINSRC% being the path to your Windows Source. I suggest extracting your driver files to the proper corresponding folder below, and don't worry about subfolders, let them be created. You'll see why it won't matter..
Name your folders starting with numbers, this ensures that specific drivers get installed in a numerical order. As you may already know, its important for chipset drivers to be installed before any other driver, this is why the chipset folder is given a number of 000, so its the first folder that Setup checks and installs. Here's an example below of how you can lay yours out:
So first, its the chipset drivers, then your network card, followed by graphics and sound (and tv out if you have one), then monitor drivers, and lastly any peripherals such as the keyboard, mouse, printer etc.
Copy all your driver folders to \Drivers
» Prepare Windows Source files
- Open the Run dialogue box by going to Start then click on Run, or press
- In the Run box, type:
expand C:\XPCD\I386\SETUP.EX_ C:\XPCD\I386\SETUPORG.EXE
Change C:\XPCD to the path of your Windows Setup Source. We are expanding the ORIGINAL SETUP.EXE file to SETUPORG.EXE.
- Next copy the presetup.cmd and
SETUP.EX_ file that you downloaded into
the I386 directory in your Windows Setup Source.
- Now open TXTSETUP.SIF in Notepad, and seach for
setup.exe = 100,,,,,,,2,0,0,,1,2
- Press ENTER a few times to create some empty lines (be careful not to
remove the line you just searched for) and add these lines:
setupORG.exe = 1,,,,,,,2,0,0 presetup.cmd = 1,,,,,,,2,0,0
Save TXTSETUP.SIF and exit Notepad.
- To finish this section up, save SetDevicePath.exe and WatchDriverSigningPolicy.exe in \Drivers
» Making Changes to presetup.cmd
- Open presetup.cmd in Notepad
- Scroll down to the lines containing SetDevicePath.exe and correct the path. Change \Drivers to where you saved the files on in your source and the parameter ( %CDROM%\Drivers ) to where you saved all your driver files. Also correct the path in the line directly below it as well.
You have just completed allowing your Windows setup to install the drivers from CD. SetDevicePath.exe will scan the recursively all the directories in the path you specify (see the presetup.cmd file for example), so even subfolders are also scanned. Any INF's found are added to the Device Path that Windows checks when it find new hardware. In this fashion, just drop any future drivers into your driver folder, and Windows will automatically use them if neccesary during setup.