Microsoft KB Archive/305310

= HOW TO: Add or Remove Mass Storage Drivers for a Custom Version of the Windows Preinstall Environment =

Q305310

Formal product support for Microsoft Windows XP will be available from Microsoft beginning October 25, 2001. Until then, you can consult with your counterparts, peers, and Microsoft Most Valuable Professionals (MVPs) by using our online newsgroups. Access to the Microsoft newsgroups is available from the following Microsoft Web site: "http://communities.microsoft.com/newsgroups/default.asp"

-

The information in this article applies to:


 * Microsoft Windows XP Professional
 * Microsoft Windows XP Home Edition

-

IN THIS TASK

 * SUMMARY
 * To customize a version of WinPE with specific third-party mass storage drivers
 * REFERENCES

SUMMARY
This article describes how to add or remove mass storage drivers to a custom version of the Windows Preinstall Environment (WinPE). You can edit the Winpeoem.sif file to add or remove mass storage drivers. After the contents of the WinPE/OPK CD-ROM have been copied to a local folder (a flat or source folder), the Winpeoem.sif file is located in the flat folder\i386\System32 folder, where flat folder is the name of the local folder you created to store the files from the WinPE/OPK CD-ROM.

You can reduce the time that WinPE requires to boot by creating a custom version of WinPE that loads a limited set of mass storage drivers, rather than loading all mass storage drivers that are natively supported in Windows XP. You may also customize WinPE to load additional third-party drivers.


 * [massstoragedrivers.replace]

mydriver = mydriver.sys

You can use this section to replace the inbox driver list with your own files.
 * [massstoragedrivers.append]

mydriver = mydriver.sys

You can use this section to append non-Plug and Play drivers to the list of the drivers that are already present in the inbox driver list.
 * [OemDriverParams]

OemDriverRoot=&quot;&quot;

OemDriverDirs= 2940u2, MegaRaid

You can use this section to load Plug and Play or non-Plug and Play OEM drivers in addition to the inbox driver list.

OemDriverRoot:

Indicates the path relative to the system folder of WinPE. If none, then specify &quot;&quot;.

OemDriverDirs:

Specifies a series of folders that are separated by a comma. Each specified folder contains the corresponding manufacturer drivers that are necessary to install the corresponding mass storage device.

OemDriverRoot=&quot;&quot; and OemDriverDirs=2940u2, MegaRaid tell WinPE that under WinPE's System32 folder there are two folders that are named 2940u2 and MegaRaid. Each of these folders should contain a Txtsetup.oem file that tells WinPE what driver files to install.

back to the top

To customize a version of WinPE with specific third-party mass storage drivers

 * 1) Insert your OEM Preinstall Kit (OPK) CD-ROM that contains the WinPE source files, and then copy the contents of the CD-ROM to a flat folder called Flat_Dir.
 * 2) In the Flat_Dir\i386\System32 folder, create the folders that will contain the mass storage drivers you want WinPE to load. For example, if you needed to load drivers for the Adaptec 2940 Ultra 2, you would create a folder called 2940u2.
 * 3) Copy the mass storage drivers and the corresponding Txtsetup.oem files to this new folder (named 2940u2) in the Flat_Dir\i386\System32 folder.
 * 4) Edit the Winpeoem.sif file in the Flat_Dir\i386\System32 folder.
 * 5) In the [OemDriverParams] section, edit the following entries appropriately, specifically ensuring that 2940u2 is listed under OemDriverDirs:
 * 6) Save changes and complete any additional custom configurations as necessary before you create your custom WinPE CD-ROM or deploy it to your Remote Installation Service (RIS) Server.

NOTE: The Adaptec 2940u2 is only used for an example of a driver that might not be included with Windows XP. Note that the 2940u2 is supported natively in Windows XP.

back to the top