Andrej
Tue Sep 09 02:21:19 CDT 2003
"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message
news:uJzGa3idDHA.1880@TK2MSFTNGP10.phx.gbl...
> There are 3 issues here.
>
> 1) How do I update the driver if the devices were never connected?
> 2) How do I update the driver for devices that are connected.
> 3) How do I update the driver for device that were connected once but not
at
> the time the setup is running?
>
> Answers:
>
> 1) All you have to do is use SetupCopyOEMInf to preinstall the new driver
> package. Since the new driver package's DriverVer is the most recent, the
> system will use the new INF as opposed to the older one that you installed
> or came with the box, when the user plugs in the device.
>
>
http://msdn.microsoft.com/library/en-us/install/hh/install/custom-install_7n
53.asp
>
> (For Windows 2000, Setup selects the driver with the most recent date only
> if the driver package is signed. Otherwise, Setup does not use the
DriverVer
> entries and uses a default date of 00/00/0000)
So, then how will Setup choose which driver to install, if it doesn't use
the DriverVer entry? If my drivers are not signed and let's say only their
DriverVers are different, which one will be installed?
> 3) This one is little tricky. The toastpkg sample in the DDK shows how to
> find non-present devices (GetNonPresentDevices). Once you find the
devnode
> then call UpdateDriverForPlugAndPlayDevices.
Eliyas, do you mean its possible to update drivers for not present devices,
calling UpdateDriverForPlugAndPlayDevices? If so, please tell me how.
AFAIK, UpdateDriverForPlugAndPlayDevices uses HarwareID and a path to the
INF file as input, so I can't feed it a devnode for missing device.
Currently I'm only marking such devnodes for update during next plug-in as
it described on the page you mentioned above.
Have a nice day!
Andrej