Overwriting Win2k device choice vs Sysprep

  • Thread starter Thread starter BrianB
  • Start date Start date
B

BrianB

When I run sysprep I have the Drivers path properly set in
OEMPnpDriversPath and all of my device are found, but
Win2k chooses its generic driver for my PCMCIA slot over
the Dell Manufactures driver that I have set in the
DevicePath. How can I prevent Win2k from choosing it's
driver over the manufactures in sysprep?
 
From 254078 How to Add OEM Plug and Play Drivers to Windows Installations
http://support.microsoft.com/?id=254078 :

"During GUI-mode Setup when the system is searching .inf files for Plug and
Play IDs, it also looks in the paths that are noted in the
OemPnPDriversPath and the standard default path of %WinDir%\Inf. The
%WinDir%\Inf path is listed first in the search order, but if you have a
device that is supported by more than one .inf file (Windows may include a
driver that offers generic functionality), Setup continues to search all
paths that are specified in the OemPnPDriversPath entry. Although it may
find multiple matches, Plug and Play uses the .inf file that has the best
match, and then installs the associated device driver to support the
device."


So, the first thing that I would do if I ran into this problem would be to
find the Vendor ID for your PCMCIA card:

Example, if I had a Texas Instruments PCI-1225 cardbus controller, and
wanted to ensure that a generic driver was not installed, I would first go
into the registry on the source machine and take a look under the following
registry key until I found the PCI/VEN number for the card: (There are
other ways of doing this, but this is the most direct way.)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI

Sifting through the sub-keys, I find my TI controller has the following
Vendor ID: PCI\VEN_104C&DEV_AC1D

I then would go to Find and search my C:\Winnt\Inf folder for *.inf with
PCI\VEN_104C&DEV_AC1D as the text to search for. I then find PCMCIA.SYS is
the file containing this string. So open up PCMCIA.SYS, delete the line
containing the Vendor ID and save the file. I also delete the PCMCIA.PNF
which is a precompiled INF. If you don't delete the PNF, the INF will not
be read during installation.

Now when you run Sysprep, the C:\Winnt\Inf folder will not have and INF
that is compatible for that folder and have to use the driver that you
specified in your Sysprep.inf.

Hope this helps.

- Bill Curtis [MSFT]
“This posting is provided "AS IS" with no warranties, and confers no
rights.”
 
Back
Top