none
Installing WinUSB.sys in windows vista RRS feed

  • Question

  • Hi, 

    I have read all resource on msdn about installing winusb. Maybe i am too stupid to follow all those instructions. I think i did follow the inf format and put WdfCoInstaller01009.dll and winusbcoinstaller2.dll in the same folder. When i tried to update "Bluetooth HID device" driver, it showed that 

    " The folder you specified doesn't contain a compatible software driver for your device. If the folder contains a driver, make sure it is designed to work with Windows for 32-bit systems."

    Does it mean i cannot install winusb.sys to "Bluetooth HID device"?? Or do I make some mistake on driver installation?

    Thanks

    Danny

    Tuesday, August 27, 2013 3:51 AM

Answers

  • A "Bluetooth HID device" will not have a USB\... hwid.  open up device manager and look at the hwid of the device to verify. even if you change the hwid in the INF, winusb will fail to start on a bluetooth enumerated device. the bluetooth HID doesn't "speak" USB, it speaks HID. you need to install this INF on a USB enumerated device.


    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, August 27, 2013 7:42 AM

All replies

  • Please post your inf. the hardware id in the inf needs to match the hwid of the device you are trying to install the device on.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, August 27, 2013 4:35 AM
  • In addition to Doron's suggestion, I would also check the file "%WINDIR%\inf\setupapi.dev.log" altough it seems that installation didn't really start due to missing correct HW id in the inf file at your installation folder.
    Tuesday, August 27, 2013 4:57 AM
  • [Version]
    Signature="$Windows NT$"
    Class=CustomClassName
    ClassGuid={FDE184DF-2C3E-4af3-9D6D-CEDE19D02714}
    Provider=%ProviderName%
    DriverVer=01/16/2010,1.0.0
    ; CatalogFile=catalog.cat

    [ClassInstall32]
    AddReg=CustomClassAddReg

    [CustomClassAddReg]
    HKR,,,,%DisplayClassName%
    HKR,,Icon,,-20

    [Manufacturer]
    %ProviderName% = MyWinUSBDevice,NTx86,NTamd64

    [MyWinUSBDevice.NTx86]
    %DeviceName%=USB_Install, USB\VID_00FF&PID_1234

    [MyWinUSBDevice.NTamd64]
    %DeviceName%=USB_Install, USB\VID_00FF&PID_1234

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

    [USB_Install.Services]
    Include=winusb.inf
    AddService=WinUSB,0x00000002,WinUSB_ServiceInstall

    [WinUSB_ServiceInstall]
    DisplayName     = %WinUSB_SvcDesc%
    ServiceType     = 1
    StartType       = 3
    ErrorControl    = 1
    ServiceBinary   = %12%\WinUSB.sys

    [USB_Install.Wdf]
    KmdfService=WINUSB, WinUsb_Install

    [WinUSB_Install]
    KmdfLibraryVersion=1.9

    [USB_Install.HW]
    AddReg=Dev_AddReg

    [Dev_AddReg]
    HKR,,DeviceInterfaceGUIDs,0x10000,"{BB9176E8-924F-4a7e-963A-6DC6A4E87FC2}"

    [USB_Install.CoInstallers]
    AddReg=CoInstallers_AddReg
    CopyFiles=CoInstallers_CopyFiles

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

    [CoInstallers_CopyFiles]
    WinUSBCoInstaller2.dll
    WdfCoInstaller01009.dll
    WUDFUpdate_01009.dll

    [DestinationDirs]
    CoInstallers_CopyFiles=11

    [SourceDisksNames]
    1 = %DISK_NAME%,,,\x86
    2 = %DISK_NAME%,,,\amd64

    [SourceDisksFiles.x86]
    WinUSBCoInstaller2.dll=1
    WdfCoInstaller01009.dll=1
    WUDFUpdate_01009.dll=1

    [SourceDisksFiles.amd64]
    WinUSBCoInstaller2.dll=2
    WdfCoInstaller01009.dll=2
    WUDFUpdate_01009.dll=2

    [Strings]
    ProviderName="Provider of this INF file"
    Manufacturer="Device manufacturer"
    DeviceName="TestDevice"
    DisplayClassName="Test class"
    DISK_NAME="My Install Disk"
    WinUSB_SvcDesc="WinUSBService"

    For both ClassGuid and DeviceInterfaceGUIDs, i did not specify because i did not know what i should fill in.

    Here are the file a put with winusb.inf

    C:\

    .. UsbDevice\

    WdfCoInstaller01009.dll <- copy from x86

    winusb.inf

    winusbcoinstaller2.dll

    WUDFUpdate_01009.dll

    .... x86\ <- sub folder of UsbDevice

    WdfCoInstaller01009.dll

    winusbcoinstaller2.dll

    WUDFUpdate_01009.dll

    ....ia64\ <- sub folder of UsbDevice

    WdfCoInstaller01009.dll

    winusbcoinstaller2.dll

    WUDFUpdate_01009.dll

    ....amd64\ <- sub folder of UsbDevice

    WdfCoInstaller01009.dll

    winusbcoinstaller2.dll

    WUDFUpdate_01009.dll

    hope you all could understand what i am going to present. Thanks !

    Tuesday, August 27, 2013 5:44 AM
  • A "Bluetooth HID device" will not have a USB\... hwid.  open up device manager and look at the hwid of the device to verify. even if you change the hwid in the INF, winusb will fail to start on a bluetooth enumerated device. the bluetooth HID doesn't "speak" USB, it speaks HID. you need to install this INF on a USB enumerated device.


    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, August 27, 2013 7:42 AM
  • My device connected through bluetooth. Should I install it on bluetooth device or the USB port that bluetooth dongle plugged in?
    Tuesday, August 27, 2013 8:22 AM