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 Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,541 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,150 questions
0 comments No comments
{count} votes

Accepted answer
  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 39,351 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.