INF CopyFiles, rename and catalog

In our INF we have to create a directory structure which contains
several files of the same name. The only way I found was to rename
source files and install them with original name. Following way:

File_Subdir -> Subdir\File

INF contains several similar constructs:

CopyFiles=File_Subdir_Copy

[DestinationDirs]
File_Subdir_Copy=12345,Subdir

[File_Subdir_Copy]
File,File_Subdir

(If somebody knows better way, I’d like to know)

Now the question: when we sign such a driver, WHQL will create a catalog
file. Does it contain source file names or destionation names? I.e.
File_Subdir or File? I presume source names as signature is checked
before installation. But how it can be checked after installation? It
seems at least WLK doesn’t complain when file from catalog is missing
but there are other tools OEMs use and they may not be happy with it.

Rename syntax in CopyFiles is valid and documened so I’d like to know
how it is handled. We could of course sign the driver but for $250 it is
a bit expensive test. Has anybody used this syntax in WHQLd driver?

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]

Michal Vodicka wrote:

Now the question: when we sign such a driver, WHQL will create a catalog
file. Does it contain source file names or destionation names? I.e.
File_Subdir or File? I presume source names as signature is checked
before installation. But how it can be checked after installation? It
seems at least WLK doesn’t complain when file from catalog is missing
but there are other tools OEMs use and they may not be happy with it.

The WHQL signature checksum merely covers the files as they exist in
your driver package, before installation. After your drivers have been
installed, the WHQL signature doesn’t matter any more.


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

> -----Original Message-----

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Monday, October 19, 2009 7:09 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] INF CopyFiles, rename and catalog

The WHQL signature checksum merely covers the files as they exist in
your driver package, before installation. After your drivers
have been
installed, the WHQL signature doesn’t matter any more.

AFAIK one WLK machine test checks signatures of all installed drivers.
In addition, our OEMs run their own tests for signature checking. They
test whole packages. I’m pretty sure about it because they complained
our driver isn’t signed when another driver replaced WDF coinstallers
with different version (Win7 pre-RTM phase, already solved).

In turn, WHQL signature DOES matter after installation.

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]