How do I use WiX to deploy an INF-based USB driver

I also had the same problem. The following worked for me.

Added to the project 2 references:

  • WixDifxAppExtension
  • difxapp_x64.wixlib

Inside the Wix node of .wxs file, I added the attribute:

xmlns:difxapp='http://schemas.microsoft.com/wix/DifxAppExtension'

Looks like it needs to refer and use the difxapp namespace.

Inside the Component that includes the .inf file, I added:

<difxapp:Driver PlugAndPlayPrompt="no"/>

According to the manual, <Driver> should be under <Component>, and your Wix should look something like:

<DirectoryRef Id="DriversFolder" FileSource="..\Includes\">
  <Component Id="MyDriver" Guid="[PUT GUID]">
    <Driver Legacy='yes' />
    <File Id="cyusb.inf" Vital="yes" />
    <File Id="cyusb.sys" Vital="yes" />
  </Component>
</DirectoryRef>

More information from this guy's blog

Tags:

Wix

Driver

Inf