Prev: WinUSB Blue Screen
Next: Error in WdfRequestRetrieveOutputBuffer and WDF_MEMORY_DESCRIPTOR_INIT_BUFFER
From: jajones on 18 Dec 2009 11:42 I'm currently trying to get WinUSB installed on my XP Pro SP2 machine and every time I try and install the device and point to where the .inf files are it says it can't install the hardware because it can't find the software. Here are the steps I have taken so far: 1. Downloaded winusbdemo.inf from Jan Axelson's page 2. Modified .inf file to use the 1.9 drivers 3. Create a directory structure that had \i386 subdirectory and then put WinUSBCoInstaller2.dll, WdfCoInstaller01009.dll, and WUDFUpdate_01009.dll files into it 3. Used inf2cat to create the .cat file (did that with no errors) 4. Browsed Hardware Devices tree to find the USB device that had no driver and attempted to install the new driver. I've included the body of my .inf file below for all to see. Any advice would be much appreciate. It's frustrating because I know I'm probably missing something really small. ; Adapted from the example INF in the Microsoft document "How to Use WinUSB to Communicate with a USB Device" [Version] Signature = "$Windows NT$" Class = USB ClassGUID={36FC9E60-C465-11CF-8056-444553540000} Provider = %ProviderName% DriverVer=02/07/2008,1.0.0 CatalogFile=MyCatFile.cat ; ========== Manufacturer/Models sections =========== [Manufacturer] %ProviderName% = MyDevice_WinUSB,NTx86,NTamd64 [MyDevice_WinUSB.NTx86] %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456 [MyDevice_WinUSB.NTamd64] %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456 ; =================== Installation =================== [USB_Install] Include=winusbdemo.inf Needs=WINUSB.NT [USB_Install.Services] Include=winusbdemo.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 UmdfServiceOrder=WINUSB [WinUSB_Install] KmdfLibraryVersion=1.9 [USB_Install.HW] AddReg=Dev_AddReg [Dev_AddReg] HKR,,DeviceInterfaceGUIDs,0x10000,"{42CA71EC- CE1C-44c2-82DE-87D8D8FF6C1E}" [USB_Install.CoInstallers] AddReg=CoInstallers_AddReg CopyFiles=CoInstallers_CopyFiles [CoInstallers_AddReg] HKR,,CoInstallers32,0x00010000,"WinUSBCoInstaller2.dll","WUDFUpdate_01009.dll","WdfCoInstaller01009.dll,WdfCoInstaller" [CoInstallers_CopyFiles] WinUSBCoInstaller2.dll WdfCoInstaller01009.dll WUDFUpdate_01009.dll [DestinationDirs] CoInstallers_CopyFiles=11 ; ================= Source Media Section ===================== [SourceDisksNames.x86] 1 = %DISK_NAME%,,,\i386 [SourceDisksNames.amd64] 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 ; Copy Files section ;------------------------------------------------------------------------------ [_CopyFiles_sys] winusb.sys ;************************************************* ***************************** ; Destination Directories ;------------------------------------------------------------------------------ [DestinationDirs] DefaultDestDir = 12 ; %SystemRoot%\system32\drivers _CopyFiles_sys = 12 ; =================== Strings =================== [Strings] ProviderName="Lakeview Research" USB\MyDevice.DeviceDesc="WinUSB Demo" WinUSB_SvcDesc="WinUSB Demo" DISK_NAME="c:\WinUSB"
From: Doron Holan [MSFT] on 18 Dec 2009 12:46 what do the setup logs say? -- This posting is provided "AS IS" with no warranties, and confers no rights. "jajones" <jonathan.anh.jones(a)gmail.com> wrote in message news:e4b518ae-c70d-4766-86a2-3a154b62c0a8(a)a21g2000yqc.googlegroups.com... > I'm currently trying to get WinUSB installed on my XP Pro SP2 machine > and every time I try and install the device and point to where > the .inf files are it says it can't install the hardware because it > can't find the software. Here are the steps I have taken so far: > > 1. Downloaded winusbdemo.inf from Jan Axelson's page > 2. Modified .inf file to use the 1.9 drivers > 3. Create a directory structure that had \i386 subdirectory and then > put WinUSBCoInstaller2.dll, WdfCoInstaller01009.dll, and > WUDFUpdate_01009.dll files into it > 3. Used inf2cat to create the .cat file (did that with no errors) > 4. Browsed Hardware Devices tree to find the USB device that had no > driver and attempted to install the new driver. > > I've included the body of my .inf file below for all to see. Any > advice would be much appreciate. It's frustrating because I know I'm > probably missing something really small. > > ; Adapted from the example INF in the Microsoft document "How to Use > WinUSB to Communicate with a USB Device" > > [Version] > Signature = "$Windows NT$" > Class = USB > ClassGUID={36FC9E60-C465-11CF-8056-444553540000} > Provider = %ProviderName% > DriverVer=02/07/2008,1.0.0 > CatalogFile=MyCatFile.cat > > ; ========== Manufacturer/Models sections =========== > > [Manufacturer] > %ProviderName% = MyDevice_WinUSB,NTx86,NTamd64 > > [MyDevice_WinUSB.NTx86] > %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456 > > [MyDevice_WinUSB.NTamd64] > %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456 > > ; =================== Installation =================== > > [USB_Install] > Include=winusbdemo.inf > Needs=WINUSB.NT > > [USB_Install.Services] > Include=winusbdemo.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 > UmdfServiceOrder=WINUSB > > [WinUSB_Install] > KmdfLibraryVersion=1.9 > > [USB_Install.HW] > AddReg=Dev_AddReg > > [Dev_AddReg] > HKR,,DeviceInterfaceGUIDs,0x10000,"{42CA71EC- > CE1C-44c2-82DE-87D8D8FF6C1E}" > > [USB_Install.CoInstallers] > AddReg=CoInstallers_AddReg > CopyFiles=CoInstallers_CopyFiles > > [CoInstallers_AddReg] > HKR,,CoInstallers32,0x00010000,"WinUSBCoInstaller2.dll","WUDFUpdate_01009.dll","WdfCoInstaller01009.dll,WdfCoInstaller" > > [CoInstallers_CopyFiles] > WinUSBCoInstaller2.dll > WdfCoInstaller01009.dll > WUDFUpdate_01009.dll > > [DestinationDirs] > CoInstallers_CopyFiles=11 > > ; ================= Source Media Section ===================== > > [SourceDisksNames.x86] > 1 = %DISK_NAME%,,,\i386 > > [SourceDisksNames.amd64] > 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 > > ; Copy Files section > ;------------------------------------------------------------------------------ > [_CopyFiles_sys] > winusb.sys > > ;************************************************* > ***************************** > ; Destination Directories > ;------------------------------------------------------------------------------ > [DestinationDirs] > DefaultDestDir = 12 ; %SystemRoot%\system32\drivers > _CopyFiles_sys = 12 > > ; =================== Strings =================== > > [Strings] > ProviderName="Lakeview Research" > USB\MyDevice.DeviceDesc="WinUSB Demo" > WinUSB_SvcDesc="WinUSB Demo" > DISK_NAME="c:\WinUSB" >
From: Tim Roberts on 20 Dec 2009 19:53 jajones <jonathan.anh.jones(a)gmail.com> wrote: > >I'm currently trying to get WinUSB installed on my XP Pro SP2 machine >and every time I try and install the device and point to where >the .inf files are it says it can't install the hardware because it >can't find the software. Here are the steps I have taken so far: >... >[MyDevice_WinUSB.NTx86] >%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456 > >[MyDevice_WinUSB.NTamd64] >%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456 Does this actually match the VID and PID you've programmed into your device? What kind of device is this, EXACTLY? -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc.
From: Morten Guld on 23 Dec 2009 17:08
Why don't you start out with the sample from the WinUSB documentation instead? There are several issues with Jan's configuration. http://www.microsoft.com/whdc/connect/usb/winusb_howto.mspx Please check the include statement in the [USB_Install] and [USB_Install.Services] sections. I think it should have been Include=winusb.inf instead! /Morten "jajones" wrote: > I'm currently trying to get WinUSB installed on my XP Pro SP2 machine > and every time I try and install the device and point to where > the .inf files are it says it can't install the hardware because it > can't find the software. Here are the steps I have taken so far: > > 1. Downloaded winusbdemo.inf from Jan Axelson's page > 2. Modified .inf file to use the 1.9 drivers > 3. Create a directory structure that had \i386 subdirectory and then > put WinUSBCoInstaller2.dll, WdfCoInstaller01009.dll, and > WUDFUpdate_01009.dll files into it > 3. Used inf2cat to create the .cat file (did that with no errors) > 4. Browsed Hardware Devices tree to find the USB device that had no > driver and attempted to install the new driver. > > I've included the body of my .inf file below for all to see. Any > advice would be much appreciate. It's frustrating because I know I'm > probably missing something really small. > > ; Adapted from the example INF in the Microsoft document "How to Use > WinUSB to Communicate with a USB Device" > > [Version] > Signature = "$Windows NT$" > Class = USB > ClassGUID={36FC9E60-C465-11CF-8056-444553540000} > Provider = %ProviderName% > DriverVer=02/07/2008,1.0.0 > CatalogFile=MyCatFile.cat > > ; ========== Manufacturer/Models sections =========== > > [Manufacturer] > %ProviderName% = MyDevice_WinUSB,NTx86,NTamd64 > > [MyDevice_WinUSB.NTx86] > %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456 > > [MyDevice_WinUSB.NTamd64] > %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456 > > ; =================== Installation =================== > > [USB_Install] > Include=winusbdemo.inf > Needs=WINUSB.NT > > [USB_Install.Services] > Include=winusbdemo.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 > UmdfServiceOrder=WINUSB > > [WinUSB_Install] > KmdfLibraryVersion=1.9 > > [USB_Install.HW] > AddReg=Dev_AddReg > > [Dev_AddReg] > HKR,,DeviceInterfaceGUIDs,0x10000,"{42CA71EC- > CE1C-44c2-82DE-87D8D8FF6C1E}" > > [USB_Install.CoInstallers] > AddReg=CoInstallers_AddReg > CopyFiles=CoInstallers_CopyFiles > > [CoInstallers_AddReg] > HKR,,CoInstallers32,0x00010000,"WinUSBCoInstaller2.dll","WUDFUpdate_01009.dll","WdfCoInstaller01009.dll,WdfCoInstaller" > > [CoInstallers_CopyFiles] > WinUSBCoInstaller2.dll > WdfCoInstaller01009.dll > WUDFUpdate_01009.dll > > [DestinationDirs] > CoInstallers_CopyFiles=11 > > ; ================= Source Media Section ===================== > > [SourceDisksNames.x86] > 1 = %DISK_NAME%,,,\i386 > > [SourceDisksNames.amd64] > 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 > > ; Copy Files section > ;------------------------------------------------------------------------------ > [_CopyFiles_sys] > winusb.sys > > ;************************************************* > ***************************** > ; Destination Directories > ;------------------------------------------------------------------------------ > [DestinationDirs] > DefaultDestDir = 12 ; %SystemRoot%\system32\drivers > _CopyFiles_sys = 12 > > ; =================== Strings =================== > > [Strings] > ProviderName="Lakeview Research" > USB\MyDevice.DeviceDesc="WinUSB Demo" > WinUSB_SvcDesc="WinUSB Demo" > DISK_NAME="c:\WinUSB" > > . > |