inf version questions...

The documentation for the DriverVer directive of the Version section
states:

“This value specifies the date of the “driver package”, which includes
the driver files and the INF. This date must be the most recent date of
any file in the driver package.”

Does this really mean that I need to change the in[xf] file every day
during development? I do seem to be able to update (via devcon) newer
development versions of the driver w/o changing the date. Does this
only matter for release?

Also, Even through I specify a DriverVer of:

DriverVer = 12/18/2009,1.0.0.0

Device Manager always reports my driver version as:

Driver Version: 6.1.7600.16385

which appears to be the release of the WDK. (The “Driver Date” is
always the date of the build) Why is my version being ignored?

Thanks,
-PWM

Hello,

Also, Even through I specify a DriverVer of:

DriverVer    = 12/18/2009,1.0.0.0

Device Manager always reports my driver version as:

Driver Version:   6.1.7600.16385

which appears to be the release of the WDK.  (The “Driver Date” is
always the date of the build)  Why is my version being ignored?

In your .rc file please add following line’s and rebuild

#ifdef VER_PRODUCTVERSION
#undef VER_PRODUCTVERSION
#define VER_PRODUCTVERSION 6,00,01,001
#endif

#include “common.ver”

Now the version of .sys file will become 6.0.1.1

You can change VER_PRODUCTVERSION accordingly for whatever version
number you want.

Hope this helps.

Thanks,
–rc

Peter W. Morreale wrote:

The documentation for the DriverVer directive of the Version section
states:

“This value specifies the date of the “driver package”, which includes
the driver files and the INF. This date must be the most recent date of
any file in the driver package.”

This is really only used during installation, when the system chooses
between your new package and any existing packages. “New” packages (as
defined by DriverVer) are preferred. If you are not doing update-type
installations, this won’t really matter.

Does this really mean that I need to change the in[xf] file every day
during development?

I certainly do. The “StampInf” tool in the DDK was built for exactly
this purpose. It substitutes date and version number into substitution
strings in the INF file. The samples have a “template” INF file with an
“inx” extension, then use a “makefile.inc” makefile extension to run
stampinf to produce the INF from that. I use a similar technique in my
builds.

However, I don’t copy in the INF file for every test. I often just copy
the driver binary directly to system32\drivers and restart the driver.
I always do an uninstall/reinstall before shipping them to clients, however.

Also, Even through I specify a DriverVer of:
DriverVer = 12/18/2009,1.0.0.0

Device Manager always reports my driver version as:
Driver Version: 6.1.7600.16385

which appears to be the release of the WDK. (The “Driver Date” is
always the date of the build) Why is my version being ignored?

The displayed “Driver Version” comes from the version resource in the
driver. Unless you are updating the version resource yourself, you’re
getting standard numbers built-in to the WDK. I have scripts that run
as part of my build process that embed a version number, and scripts
that “bump” it to the next number automatically.

The “DriverVer” string is contained in the registry, but I’m not sure
anyone displays it externally.


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

On Mon, 2009-12-21 at 10:14 -0800, Tim Roberts wrote:

Peter W. Morreale wrote:

> Does this really mean that I need to change the in[xf] file every day
> during development?

I certainly do. The “StampInf” tool in the DDK was built for exactly
this purpose. It substitutes date and version number into substitution
strings in the INF file. The samples have a “template” INF file with an
“inx” extension, then use a “makefile.inc” makefile extension to run
stampinf to produce the INF from that. I use a similar technique in my
builds.

I do have a makefile.inx with stampinf, however I was not using the -d
and -v options.



Its no wonder that many of these posts sign off with “Good Luck”, you
truly need it.

Thanks Tim.

-PWM

“Peter W. Morreale” wrote in message
news:xxxxx@ntdev…

>

This was a (relatively) simple one. IMHO just a very small fraction of the
emotions that Windows devs experience while converting to Linux.

Good luck :slight_smile:
–pa