none
The required section was not found in the INF RRS feed

  • Question

  • Moving our USB device from a custom driver to WinUSB. Right now, just trying to get WinUSB loaded when the device is connected. But keep running into confusing error.

    Using example INF for OSR USB FX2 from https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/winusb-installation.  Only change is VID and PID to our device (and fixing a bug? - %DiskName% is not defined)

    Manually selecting INF after device is connected.  Asks to install driver (I never check always trust on development computer).

    Final dialog says "Windows encountered a problem..." "The required section was not found in the INF." Also see this error message in setupapi.dev.log.

    TIA for any ideas!

    ;
    ;
    ; Installs WinUsb
    ;

    [Version]
    Signature = "$Windows NT$"
    Class     = USBDevice
    ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6}
    Provider  = %ManufacturerName%
    CatalogFile = NanoScan.cat
    DriverVer=09/04/2012,13.54.20.543

    ; ========== Manufacturer/Models sections ===========

    [Manufacturer]
    %ManufacturerName% = Standard,NTamd64

    [Standard.NTamd64]
    %DeviceName% =USB_Install, USB\VID_1b2d&PID_2001

    ; ========== Class definition ===========

    [ClassInstall32]
    AddReg = ClassInstall_AddReg

    [ClassInstall_AddReg]
    HKR,,,,%ClassName%
    HKR,,NoInstallClass,,1
    HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
    HKR,,LowerLogoVersion,,5.2

    ; =================== Installation ===================

    [USB_Install]
    Include = winusb.inf
    Needs   = WINUSB.NT

    [USB_Install.Services]
    Include =winusb.inf
    Needs   = WINUSB.NT.Services

    [USB_Install.HW]
    AddReg=Dev_AddReg

    [Dev_AddReg]
    HKR,,DeviceInterfaceGUIDs,0x10000,"{9f543223-cede-4fa3-b376-a25ce9a30e74}"

    [USB_Install.CoInstallers]
    AddReg=CoInstallers_AddReg
    CopyFiles=CoInstallers_CopyFiles

    [CoInstallers_AddReg]
    HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUsbCoInstaller2.dll"

    [CoInstallers_CopyFiles]
    WinUsbCoInstaller2.dll
    WdfCoInstaller01009.dll

    [DestinationDirs]
    ; If your INF needs to copy files, you must not use the DefaultDestDir directive here.  
    CoInstallers_CopyFiles=11
    ; ================= Source Media Section =====================

    [SourceDisksNames]
    1 = %DiskName%

    [SourceDisksFiles]
    WinUsbCoInstaller2.dll=1
    WdfCoInstaller01009.dll=1


    ; =================== Strings ===================

    [Strings]
    ManufacturerName=""
    ClassName="Universal Serial Bus devices"
    DeviceName="Fx2 Learning Kit Device"
    DiskName="."
    REG_MULTI_SZ = 0x00010000

    Tuesday, July 17, 2018 6:58 PM

Answers

  • apparently the example is not really ready for prime time.

    from https://stackoverflow.com/questions/22574095/windows-usb-tutorial -

    these sections are missing

    [USB_Install.Wdf]
    KmdfService=WINUSB, WinUsb_Install

    [WinUsb_Install]
    KmdfLibraryVersion=1.11

    • Marked as answer by megaabite Tuesday, July 17, 2018 7:34 PM
    Tuesday, July 17, 2018 7:34 PM

All replies

  • Did you look in SetupAPI.dev.log, like it told you to? What is the error?

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    Tuesday, July 17, 2018 7:23 PM
    Moderator
  • "Also see this error message in setupapi.dev.log."
    Tuesday, July 17, 2018 7:28 PM
  • Look in that file (it should be near the end of the file) and show us the error. The file is in C:\Windows\INF

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    Tuesday, July 17, 2018 7:30 PM
    Moderator
  • apparently the example is not really ready for prime time.

    from https://stackoverflow.com/questions/22574095/windows-usb-tutorial -

    these sections are missing

    [USB_Install.Wdf]
    KmdfService=WINUSB, WinUsb_Install

    [WinUsb_Install]
    KmdfLibraryVersion=1.11

    • Marked as answer by megaabite Tuesday, July 17, 2018 7:34 PM
    Tuesday, July 17, 2018 7:34 PM
  • Yeah, it would be nice if the samples all worked. Remember, the samples are a way of doing something, but they are rarely the best way to do something

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    Tuesday, July 17, 2018 7:38 PM
    Moderator