none
Error in inf file for windows7 RRS feed

  • Question

  • Hi

    When I try to load driver using below inf file for winusb.dll I get error saying.

    "The required section was not found in INF"

    I don't know what I am missing.

    Here is my inf file

    ;
    ;
    ; Installs WinUsb
    ;

    [Version]
    Signature = "$Windows NT$"
    Class     = USBDevice
    ClassGUID = {18db2ff7-5cec-4a48-a3fb-e1c03e2eef89}
    Provider  = %ManufacturerName%
    CatalogFile = WinUSBInstallation.cat
    DriverVer=09/04/2012,13.54.20.543

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

    [Manufacturer]
    %ManufacturerName% = Standard,NTamd64

    [Standard.NTamd64]
    %DeviceName% =USB_Install, USB\VID_04D8&PID_000C

    [DestinationDirs]
    DefaultDestDir=12

    ; ========== 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,"{35b8c9bf-bfa7-4733-b039-297f473208c1}"

    [USB_Install.CoInstallers]
    AddReg=CoInstallers_AddReg
    CopyFiles=CoInstallers_CopyFiles

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

    [CoInstallers_CopyFiles]
    WinUsbCoInstaller2.dll
    WdfCoInstaller01011.dll
    winusb.dll

    ; [DestinationDirs]
    ; If your INF needs to copy files, you must not use the DefaultDestDir directive here. 
    ;CoInstallers_CopyFiles=1
    ; You must explicitly reference all file-list-section names in this section.

    ; ================= Source Media Section =====================

    [SourceDisksNames]
    1 = %DiskName%

    [SourceDisksFiles]
    WinUsbCoInstaller2.dll=1
    WdfCoInstaller01011.dll=1
    winusb.dll=1
    ; =================== Strings ===================

    [Strings]
    ManufacturerName="Finisar Corp"
    ClassName="Universal Serial Bus devices"
    DeviceName="Finisar Mems"
    REG_MULTI_SZ = 0x00010000
    DiskName = "WinUsb"

    ;END INF FILE

    Thanks for the help


    • Edited by JayminS Monday, July 10, 2017 8:15 PM
    Monday, July 10, 2017 7:51 PM

Answers

All replies