Hello,

I trying to make a setup application to update a PnP driver for 1394
devices. The devices are installed but possible not connected to the
computer during the update session.

A new software release means also a new driver and if a user want to use the
new software he must update first the driver for all 1394 devices.

It would be nice if the driver for the devices can be installed without
interaction with the user.

Maybe someone out there with suggestions?

Regards Ronny

RE: Update PnP driver by wendyshi

wendyshi
Mon Sep 08 12:09:50 CDT 2003

------=_NextPart_0001_E4823BDA
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

To update drivers, you can use the API UpdateDriverForPlugAndPlayDevices.

Given an INF and a hardware ID, UpdateDriverForPlugAndPlayDevices installs
updated
drivers for devices that match the hardware ID. It's documented in DDK.
There is also a sample available in XP DDK that demonstrates this technique:
\2600\src\setup\install

You may also want to check out the DevCon sample in DDK: \src\setup\devcon.


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "Ronny Vucinec" <r.vucinec@nyquist.com>
Newsgroups: microsoft.public.development.device.drivers
Subject: Update PnP driver
Date: Mon, 8 Sep 2003 10:01:14 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Lines: 17
Message-ID: <3f5c37df$0$267$4d4ebb8e@news.nl.uu.net>
NNTP-Posting-Host: 195.193.200.154
X-Trace: 1063008223 news.nl.uu.net 267 195.193.200.154
X-Complaints-To: abuse@nl.uu.net
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.freenet.de!feed.news.nacamar.de!uio.no!news.tele.dk!news.tele.
dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops
.eu.uu.net!bnewsoutpeer00.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!
bnewspost00.bru.ops.eu.uu.net!emea.uu.net!news.nl.uu.net!not-for-mail
Xref: cpmsftngxa06.phx.gbl microsoft.public.development.device.drivers:30432
X-Tomcat-NG: microsoft.public.development.device.drivers

Hello,

I trying to make a setup application to update a PnP driver for 1394
devices. The devices are installed but possible not connected to the
computer during the update session.

A new software release means also a new driver and if a user want to use the
new software he must update first the driver for all 1394 devices.

It would be nice if the driver for the devices can be installed without
interaction with the user.

Maybe someone out there with suggestions?

Regards Ronny



------=_NextPart_0001_E4823BDA
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 To update drivers, you can use the API UpdateDriverForPlugAndPlayDevices.
\par
\par Given an INF and a hardware ID, UpdateDriverForPlugAndPlayDevices installs updated
\par drivers for devices that match the hardware ID. It's documented in DDK.
\par There is also a sample available in XP DDK that demonstrates this technique:
\par \\2600\\src\\setup\\install
\par
\par You may also want to check out the DevCon sample in DDK: \\src\\setup\\devcon.
\par
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par \pard\li720 --------------------
\par From: "Ronny Vucinec" <r.vucinec@nyquist.com>
\par Newsgroups: microsoft.public.development.device.drivers
\par Subject: Update PnP driver
\par Date: Mon, 8 Sep 2003 10:01:14 +0200
\par X-Priority: 3
\par X-MSMail-Priority: Normal
\par X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
\par X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
\par Lines: 17
\par Message-ID: <3f5c37df$0$267$4d4ebb8e@news.nl.uu.net>
\par NNTP-Posting-Host: 195.193.200.154
\par X-Trace: 1063008223 news.nl.uu.net 267 195.193.200.154
\par X-Complaints-To: abuse@nl.uu.net
\par Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feed.news.nacamar.de!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!bnewsoutpeer00.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.uu.net!news.nl.uu.net!not-for-mail
\par Xref: cpmsftngxa06.phx.gbl microsoft.public.development.device.drivers:30432
\par X-Tomcat-NG: microsoft.public.development.device.drivers
\par
\par Hello,
\par
\par I trying to make a setup application to update a PnP driver for 1394
\par devices. The devices are installed but possible not connected to the
\par computer during the update session.
\par
\par A new software release means also a new driver and if a user want to use the
\par new software he must update first the driver for all 1394 devices.
\par
\par It would be nice if the driver for the devices can be installed without
\par interaction with the user.
\par
\par Maybe someone out there with suggestions?
\par
\par Regards Ronny
\par
\par
\par \pard
\par
\par }
------=_NextPart_0001_E4823BDA--


Re: Update PnP driver by Andrej

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





Re: Update PnP driver by Eliyas

Eliyas
Tue Sep 09 11:12:55 CDT 2003

>
> 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?
>

Indeterminate. Either you get your driver signed or delete the other INF.

> do you mean its possible to update drivers for not present devices,
> calling UpdateDriverForPlugAndPlayDevices?

Yes. I told you already how to do that. Look at the GetNonPresentDevices
function in src\general\toaster\toastpkg\ sample.

--
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.