what is the significance of "[PackageInfo]" directive and "Condition=InstalledDriverSection" in inf.

Hello,

Can any one please help me understanding that what is the significance of

“[PackageInfo]
Condition=InstalledDriverSection”

section in inf for drivers.

Regards,
Bharat.

Bharat Kulkarni wrote:

Can any one please help me understanding that what is the significance of

“[PackageInfo]
Condition=InstalledDriverSection”

section in inf for drivers.

No, we can’t. That’s a private section used by a custom co-installer.
You would have to ask the vendor that wrote the co-installer. There is
no pre-defined meaning.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks,

But I would like to know more from Windows perspective.
How exactly Windows handles these directive. What does Windows interprets
it.
I have referred to inf how tos but couldn’t any description written about
these sections.

Can anyone help.

Thanks and Regards,
Bharat Kulkarni,

On Mon, May 16, 2011 at 11:43 PM, Tim Roberts wrote:

> Bharat Kulkarni wrote:
> >
> > Can any one please help me understanding that what is the significance of
> >
> > “[PackageInfo]
> > Condition=InstalledDriverSection”
> >
> > section in inf for drivers.
>
> No, we can’t. That’s a private section used by a custom co-installer.
> You would have to ask the vendor that wrote the co-installer. There is
> no pre-defined meaning.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Bharat Kulkarni wrote:

But I would like to know more from Windows perspective.
How exactly Windows handles these directive. What does Windows
interprets it.
I have referred to inf how tos but couldn’t any description written
about these sections.

Apparently, you did not understand what I wrote.

Windows doesn’t do ANYTHING with that section. Device Manager will
ignore it. Nothing in the operating system looks for that directive.

A driver package can have one or more “co-installers” that assist in the
installation process. The co-installers are called by Device Manager at
many points during the installation process, to perform whatever custom
activities the driver package author needs to do. The co-installer has
full access to all of the files in the package, including the INF. In
this case, one of the co-installers in that package looks for the
[PackageInfo] section and processes it. We don’t have any idea what the
co-installer does with it. You would have to contact the company that
wrote the co-installer. I saw one reference to an Intel graphics
package that used it. In that case, Intel wrote the co-installer, and
only Intel knows what the section is used for.

By the way, this is exactly what the KMDF co-installer does. Device
Manager does not do anything with the [Xxxx.Wdf] section or the
KmdfVersion directive. They are ignored by the operating system.
However, the KMDF co-installer does go looking for those sections, in
order to do the version checking and registry setup. Same concept.

Can anyone help.

Help with what? Your question is exactly like asking “I have a DLL with
a function called MyGreenFunction. What does that function do?” We
can’t answer that. Only the author can. If you aren’t using a custom
co-installer, then you don’t need those sections. If you are using a
custom co-installer, then you already know what they do.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.