After using the computer for many years, the drive installation disk attached to the product has long been "gone", and every time you reinstall the system, you have to work hard to install the drivers of various hardware, is there a way to place the driver directly on the Windows XP (WinXP) installation disk, so that the latest hardware driver is installed at the same time as the system is reinstalled?
In fact, there is a DRIVER in the I386 folder of the WinXP installation disc. the CAB file is stored in this compressed file as the default driver to be installed when the system is installed. After the driver is decompressed, you can see many driver files. However, if you want to simply add an extra driver to this folder, you cannot get the purpose of "injecting" The driver. To integrate the driver you need into the WinXP installation disc, some operations and settings are required.
I. Preparations
1. Copy the Installation File
Copy all files on the WinXP installation disc to a folder on the hard disk. For example, F: XPCD (XPCD is the new folder ), make sure that the F disk has enough space to accommodate about two installation discs, because after creating a new WinXP installation disc, we also need to create an image file.
2. Prepare the driver File
Create a folder named "$ OEM $" in the XPCD folder, enter the "$ OEM $" folder, and create a folder named, finally, create a folder named "drivers" in the "" folder. Next, copy all the latest drivers (such as the motherboard, sound card, video card, and network card) to the drivers folder (1 ).
TIPS: In the above Folder creation operation, the created "$ OEM $" and "" folder names cannot be other names. When copying the latest driver to the "drivers" folder, note that the copied driver must be the decompressed folder, you cannot directly put unzipped driver files in the drivers folder. Find the latest drivers to find and download in the http://www.mydrivers.com, you can also use driver Genie and other hardware driver extraction programs to collect device drivers that have been installed in the system
3. Create a WINNT. sif File
And rename it to the winnt. sif we need, and save it to the F: XPCDI386 file.
The Setupmgr.exe program can be run in the F: installation program. After running this program, the "Windows Installation manager wizard" window opens (2 ).
Figure 2
Save path of the hosts file (3 ),
Figure 3
Click "OK.
Now, rename the just-created unzip unattend.txt file to "winnt. sif" and save it to the F: XPCDI386 folder, which will be modified later.
Tip: when modifying the file name, you must change the winnt.sif.txt file to winnt.sif.txt.
2. Load the driver
Open the "WINNT. SIF" file in notepad and add the following command in the "[Unattended]" field:
[Unattended]
OemPreinstall = Yes
OemPnPDriversPath = "Driversmainboad; DrversRealtek RTL8139810; DriversGraphics Chipset Driver; DriversRealtek AC97 Audio; DriversUSB PC Camera 301 P; DriversModem"
DriverSigningPolicy = Ignore
"OemPreinstall = Yes" indicates that the WinXP installer knows that there is a $ OEM $ release folder on the installation disc, at the same time, this value also allows the installer to copy the required program files to the WinXP installation release folder.
"OemPnPDriversPath =" Driversmainboad; DrversRealtek RTL8139810; DriversGraphics Chipset Driver; DriversRealtek AC97 Audio; DriversUSB PC Camera 301 P; "OemPnPDriversPath" in DriversModem "is a command that specifies a path for each device driver, the entire section indicates the location where the installer can find the driver that is later than the self-contained driver on the CD. For example, the usb pc Camera 301P driver is not included in the installation CD, open the driver folder and you will see the subfolders containing the INF file. After the above command is added, the installer will point to the driver folders. where the inf file folder is located, mainboad, Realtek RTL8139810, Graphics Chipset Driver, Re Altek AC97 Audio, usb pc Camera 301P, and Modem are directories where drivers contain inf files.
"DriverSigningPolicy = Ignore" indicates that the installer can force the installation of a driver without the Microsoft Digital signature authentication (WHQL). This command is used with OemPnPDriversPath.
Note that the preceding lines of characters must be in the half-width character state during input. Remember to save the changes.
3. Generate a drive Disc
1. Create a boot disc image file
The purpose of creating a CD image file is to extract the boot file. Here we use WinISO to introduce how to create it.
Run the WinISO program, click the "Actions" menu in the interface, click the "Make ISO from CDROM" option in the drop-down menu that appears, and then in the pop-up window "Choose you CD-ROM, select the drive letter of the CD, and locate the path and file name of the ISO file in the "Output file" column. In the "Option" column, select the "ASPI" item, which indicates the full disk copy, copy the bootable information and click "Make" to create the ISO file (4) of the XP boot CD ).
Figure 4
2. Extract boot information from the xp cd image file
After the xp cd image file is created, we will extract the boot information from the WinXP CD image file and click the "Open" icon on the WinISO tool bar, then, in the window that opens, find the created WinXP CD image file (ISO file) in the window that opens, and then the image file will be loaded into the window, click the "Bootable CD" menu and click "Save boot information to file..." in the drop-down menu ..." Finally, in the pop-up window, determine the path and file name of the WinXP CD boot information (for example, named boot. wbt ).
3. Create a new XP image file and load the boot Information
On the toolbar of the WinISO program main window, click the "New" icon and then click the "Open" icon. We will go to F: all the WinXP system installation files created in XPCD are selected and dragged into the WinISO program window, click the "BOOTable CD" menu and click the "Load boot information form file" item in the menu, and then find the extracted boot in the pop-up window. wbt file, and then click "open" (5 ).
Figure 5
4. generate a new CD image file
After the boot information is attached to the new WinXP installation disc, click the "Save" icon in the toolbar of the WinISO program window, in the displayed "Save as" window, confirm the Save path and file name of the new CD image file, and click "save". The production progress window is displayed, after the installation is complete, a new WinXP installation CD image file is generated. Finally, use the Nero and other burning tools to burn the generated new WinXP CD image file to the CD, so that a "injection" of the latest driver WinXP boot and installation CD will be done.