Driver attestation signing fail due to invalid INF about Coinstallers32

SamLee 0 Reputation points
2023-02-21T02:21:30.9566667+00:00

Hi, Microsoft Expert,

  The attestation signing of the windows driver packages in MS Partner Center fails with the following error message:

    "Error 1303 in RDC_CAN_IO.inf, line 114 : Found legacy AddReg operation defining co-installers (CoInstallers32).

     Failed INF validation. INF did not pass Desktop validation (InfVerif /k)."

The content of the In the RDC_CAN_IO.inf from line 110 -116 like the below, how to fix this issue?

[FuncDrv_CANController_Inst.CoInstallers]
AddReg=KMDF_CoInstaller_AddReg
CopyFiles=KMDF_CoInstaller_CopyFiles

[KMDF_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller" \
  ,"GeneralCoInstall.dll,CoInstallEntryPoint1" \
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,774 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 43,996 Reputation points
    2023-02-21T19:34:25.64+00:00

    This error message indicates that the driver package fails to pass the desktop validation because of an invalid INF file. Specifically, the INF file contains a legacy AddReg operation that defines co-installers (CoInstallers32), which is not allowed.

    To fix this issue, you need to remove the legacy AddReg operation and use the updated co-installer mechanism. Here are the steps you can follow:

    1. Open the RDC_CAN_IO.inf file in a text editor.
    2. Locate the [FuncDrv_CANController_Inst.CoInstallers] section that contains the AddReg operation defining CoInstallers32.
    3. Remove the AddReg operation and the associated CoInstallers32 entry.
    4. Add the following two sections to the INF file to define the new co-installer mechanism:

    [KMDF_AddService]

    DisplayName = %KMDF.SvcDesc%

    ServiceType = 1

    StartType = 3

    ErrorControl = 1

    ServiceBinary = %12%\WdfCoInstaller01009.dll

    AddReg = KMDF_AddReg

    [KMDF_AddReg]

    HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll"

    1. Save the changes and try to sign the driver package again.

    By following these steps, you should be able to update the INF file to use the new co-installer mechanism and pass the desktop validation.


  2. SamLee 0 Reputation points
    2023-02-23T06:43:46.2166667+00:00

    Hi Limitless Technology,

    Thanks for kindly reply.

    But the points is "GeneralCoInstall.dll,CoInstallEntryPoint1".

    The GeneralCoInstall.dll need to be excuted the function CoInstallEntryPoint1 for update friendly name of the registery by the coinstaller.

    How to descript it to let coinstaller to excute CoInstallEntryPoint1 function of the GeneralCoInstall.dll on the INF?

    0 comments No comments

  3. Pfeuffer, Dieter 5 Reputation points
    2023-03-29T13:57:59.0433333+00:00

    Hi SamLee,

    did you found any solution for your described problem?

    I have exact the same problem.

    Just specifying

    [KMDF_AddService]

    ...

    [KMDF_AddReg]

    ...

    doesn't work, because:

    a) I have to specify the entry function to call from my CoInstaller DLL to provide a property page in the device manager.

    b) infverif.exe reports the error "Section [kmdf_addservice] not referenced or used."