UpdateDriverForPlugAndPlayDevices

Hi,

Does the function UpdateDriverForPlugAndPlayDevices install updated drivers
for nonpresent devices?

Thanks,
JT

(1) Yes - real easy to install one device with devcon /install hwid.

(2) Just check out the devcon.exe sample in the DDK under the Setup subdir.
Look at CmdInstall(). Please note the following that I learned the “hard”
way and I will share this with you. When you use devcon to install a non
plug-n-play device with say the /install parameter and you already have
devices of this type installed do the following: (a) Before you run devcon
/install to install a NEW non plug-n-play device change the hardware id of
all PREVIOUS installed devices of the same type, meaning the same hardware
id. Now when you run devcon /install hwid you will only install ONE new
device. If you do not do this devcon /install hwid will UPDATE all previous
installed device with the same hwid meaning it will unload and reload all of
the previously installed devices.

Sincerely
Michael Jones

“JT Zhou” wrote in message news:xxxxx@ntdev…
> Hi,
>
> Does the function UpdateDriverForPlugAndPlayDevices install updated
drivers
> for nonpresent devices?
>
> Thanks,
> JT
>
>
>

No. Devices need to be present for a driver update to happen. You can use
UpdateDriverForPlugAndPlayDevices for multiple devices in one shot, but they
all need to be present on the system. Well, there are cases in which an
update will affect all other installations… For example, if you update
your driver with the same binary and same location, then the previous
installations of the driver (for other devices for example) will now use
your new binary. But we all agree this is not a true update process
(coinstallers aren’t called, INF is not processed, etc).

Mat

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of JT Zhou
Sent: Wednesday, October 13, 2004 1:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] UpdateDriverForPlugAndPlayDevices

Hi,

Does the function UpdateDriverForPlugAndPlayDevices install updated drivers
for nonpresent devices?

Thanks,
JT


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@encentrus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Is there a way to do a driver update for the nonpresent device? I find it
can be done in Device Manager. I assume there are some Setup APIs availble
for this but I don’t know where they are and how to use them.

Thanks,
JT

“Mathieu Routhier” wrote in message
news:xxxxx@ntdev…
>
> No. Devices need to be present for a driver update to happen. You can
use
> UpdateDriverForPlugAndPlayDevices for multiple devices in one shot, but
they
> all need to be present on the system. Well, there are cases in which an
> update will affect all other installations… For example, if you update
> your driver with the same binary and same location, then the previous
> installations of the driver (for other devices for example) will now use
> your new binary. But we all agree this is not a true update process
> (coinstallers aren’t called, INF is not processed, etc).
>
> Mat
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of JT Zhou
> Sent: Wednesday, October 13, 2004 1:32 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] UpdateDriverForPlugAndPlayDevices
>
> Hi,
>
> Does the function UpdateDriverForPlugAndPlayDevices install updated
drivers
> for nonpresent devices?
>
> Thanks,
> JT
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@encentrus.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>

Just type “Writing a Device Installation Application” into the Index - ‘Look
for’ field of DDK documentation or MSDN library and scroll down to paragraph
“Reinstalling an Unplugged Device”.

Regards
Volker

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of JT Zhou
Sent: Thursday, October 14, 2004 5:37 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] UpdateDriverForPlugAndPlayDevices

Is there a way to do a driver update for the nonpresent
device? I find it
can be done in Device Manager. I assume there are some Setup
APIs availble
for this but I don’t know where they are and how to use them.

Thanks,
JT

“Mathieu Routhier” wrote in message
>news:xxxxx@ntdev…
>>
>> No. Devices need to be present for a driver update to
>happen. You can
>use
>> UpdateDriverForPlugAndPlayDevices for multiple devices in
>one shot, but
>they
>> all need to be present on the system. Well, there are cases
>in which an
>> update will affect all other installations… For example,
>if you update
>> your driver with the same binary and same location, then the previous
>> installations of the driver (for other devices for example)
>will now use
>> your new binary. But we all agree this is not a true update process
>> (coinstallers aren’t called, INF is not processed, etc).
>>
>> Mat
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of JT Zhou
>> Sent: Wednesday, October 13, 2004 1:32 PM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] UpdateDriverForPlugAndPlayDevices
>>
>> Hi,
>>
>> Does the function UpdateDriverForPlugAndPlayDevices install updated
>drivers
>> for nonpresent devices?
>>
>> Thanks,
>> JT
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@encentrus.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently
>subscribed to ntdev as: xxxxx@baslerweb.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>

AFAIK, there’s no way to do that.

On the other hand, if you find a way to uninstall the absent devices (or
make them unusable by deleting the driver’s binary) then the next time the
device is discovered, the system will prompt you and will ask for a new
installation.

Mat

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of JT Zhou
Sent: Thursday, October 14, 2004 11:37 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] UpdateDriverForPlugAndPlayDevices

Is there a way to do a driver update for the nonpresent device? I find it
can be done in Device Manager. I assume there are some Setup APIs availble
for this but I don’t know where they are and how to use them.

Thanks,
JT

“Mathieu Routhier” wrote in message
news:xxxxx@ntdev…
>
> No. Devices need to be present for a driver update to happen. You can
use
> UpdateDriverForPlugAndPlayDevices for multiple devices in one shot, but
they
> all need to be present on the system. Well, there are cases in which an
> update will affect all other installations… For example, if you update
> your driver with the same binary and same location, then the previous
> installations of the driver (for other devices for example) will now use
> your new binary. But we all agree this is not a true update process
> (coinstallers aren’t called, INF is not processed, etc).
>
> Mat
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of JT Zhou
> Sent: Wednesday, October 13, 2004 1:32 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] UpdateDriverForPlugAndPlayDevices
>
> Hi,
>
> Does the function UpdateDriverForPlugAndPlayDevices install updated
drivers
> for nonpresent devices?
>
> Thanks,
> JT
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@encentrus.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@encentrus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

(1) When I said Yes I was assuming this was an non plug-n-play device. Or a
software only device. You indeed have to have some kind of device, i.e.
plug-n-play or non-plug-n-play, of course.

Sincerely;
Michael Jones

“Mathieu Routhier” wrote in message
news:xxxxx@ntdev…
> AFAIK, there’s no way to do that.
>
> On the other hand, if you find a way to uninstall the absent devices (or
> make them unusable by deleting the driver’s binary) then the next time the
> device is discovered, the system will prompt you and will ask for a new
> installation.
>
> Mat
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of JT Zhou
> Sent: Thursday, October 14, 2004 11:37 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] UpdateDriverForPlugAndPlayDevices
>
> Is there a way to do a driver update for the nonpresent device? I find it
> can be done in Device Manager. I assume there are some Setup APIs availble
> for this but I don’t know where they are and how to use them.
>
> Thanks,
> JT
>
> “Mathieu Routhier” wrote in message
> news:xxxxx@ntdev…
> >
> > No. Devices need to be present for a driver update to happen. You can
> use
> > UpdateDriverForPlugAndPlayDevices for multiple devices in one shot, but
> they
> > all need to be present on the system. Well, there are cases in which an
> > update will affect all other installations… For example, if you
update
> > your driver with the same binary and same location, then the previous
> > installations of the driver (for other devices for example) will now use
> > your new binary. But we all agree this is not a true update process
> > (coinstallers aren’t called, INF is not processed, etc).
> >
> > Mat
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of JT Zhou
> > Sent: Wednesday, October 13, 2004 1:32 PM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] UpdateDriverForPlugAndPlayDevices
> >
> > Hi,
> >
> > Does the function UpdateDriverForPlugAndPlayDevices install updated
> drivers
> > for nonpresent devices?
> >
> > Thanks,
> > JT
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@encentrus.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@encentrus.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>