Recommended way of installing WinUSB driver with custom INF file using Windows 11, version 22H2 WDK without co-installers?

MaZe 21 Reputation points
2022-09-12T08:02:55.843+00:00

My driver package consists of a custom INF file that used to use the WdfCoInstaller and WinUsbCoInstaller DLLs for installation of the WinUSB driver for our USB devices, targeting Windows 10 and below. This was one of the recommended ways for WinUSB installation back then (winusb-installation).

Now I'd like to update and target Windows 11 as well. But starting with the Windows 11 version 22H2 WDK, the WDF redistributable co-installers are no longer supported (and no longer installed).

So I wonder what is the recommended way now of deploying/installing the WinUSB driver for devices with a custom VID/PID and a custom INF file? The device is not defined as WinUSB device for automatic installation without an INF file and it does not fall into any of the system-provided device classes.

Windows for business | Windows Client for IT Pros | Devices and deployment | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Doron Holan 1,801 Reputation points
    2022-09-12T16:29:00.657+00:00

    Simply remove the references to the coinstallers. The coinstallers have been no-ops for years, WinUSB and WDF have been included in the OS media since before Win10.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 40,076 Reputation points
    2022-09-12T19:59:06.42+00:00

    Hello there,

    Only include a ClassInstall32 section in a device INF file to install a new custom device setup class. INF files for devices in an installed class, whether a system-supplied device setup class or a custom class, must not include a ClassInstall32 section.

    If the Automatic installation of WinUSB without an INF file is not working then Modern deployment methods are recommended unless you have a specific need to use a different procedure. These methods are supported by existing tools such as Microsoft Deployment Toolkit (MDT) and Microsoft Endpoint Configuration Manager.

    WinUSB (Winusb.sys) installation for developers https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/winusb-installation

    --------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.