none
Error in INF file: RRS feed

  • Question

  • Hello,

    I am trying to install WINUSB on my windows 7 and (32 bit) to detect a PRINTER, when i test my inf file with help of chkinf.bat it shows following error.

    "Can not create UTF8 ' .\utf8\C!+Windoes=inf+__winusb.inf' from 'C:\Windows\inf\winusb.inf': No such file or directory found "

    Things I already checked:

    • winusb.inf is there in C:\Windows\inf\

    My inf file code is as follows, please help me with this.


    [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_03F0&PID_8911&MI_00





    [MyDevice_WinUSB.NTamd64]
    %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_03F0&PID_8911&MI_00




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

    [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
    UmdfServiceOrder=WINUSB

    [WinUSB_Install]
    KmdfLibraryVersion=1.7

    [USB_Install.HW]
    AddReg=Dev_AddReg

    [Dev_AddReg]
    HKR,,DeviceInterfaceGUIDs,0x10000,"{BE0A005B-CE03-4143-B98C-68D6DD3ED113}"

    [USB_Install.CoInstallers]
    AddReg=CoInstallers_AddReg
    CopyFiles=CoInstallers_CopyFiles

    [CoInstallers_AddReg]
    HKR,,CoInstallers32,0x00010000,"winusbcoinstaller.dll","WudfUpdate_01011.dll","WdfCoinstaller01011.dll,WdfCoInstaller"

    [CoInstallers_CopyFiles]
    winusbcoinstaller.dll
    WdfCoinstaller01011.dll
    WudfUpdate_01011.dll

    [DestinationDirs]
    CoInstallers_CopyFiles=11

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

    [SourceDisksNames.x86]
    1 = %DISK_NAME%,,,\i386

    [SourceDisksNames.amd64]
    2 = %DISK_NAME%,,,\amd64

    [SourceDisksFiles.x86]
    winusbcoinstaller.dll=1
    WdfCoinstaller01011.dll=1
    WudfUpdate_01011.dll=1

    [SourceDisksFiles.amd64]
    winusbcoinstaller.dll=2
    WdfCoinstaller01011.dll=2
    WudfUpdate_01011.dll=2

    ; Copy Files section
    ;------------------------------------------------------------------------------
    [_CopyFiles_sys]
    winusb.sys

    ;************************************************* *****************************
    ; Destination Directories
    ;------------------------------------------------------------------------------
    [DestinationDirs]
    DefaultDestDir = 12 ; %SystemRoot%\system32\drivers
    _CopyFiles_sys = 12

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

    [Strings]
    ProviderName="MB"
    USB\MyDevice.DeviceDesc="Deskjet 1050 J410 series"
    WinUSB_SvcDesc="WinUSB Demo"
    DISK_NAME="My Install Disk"
    ClassName = "USB"

    Thursday, September 12, 2013 2:31 PM

Answers

  • Go to the directory where you have the INF file and run ChkInf from there.  Be sure to fix all errors and warnings (some warnings cause failures).


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    • Proposed as answer by RohitGarg Thursday, September 12, 2013 3:14 PM
    • Marked as answer by Mayank07Bagaria Friday, September 13, 2013 6:22 AM
    Thursday, September 12, 2013 2:52 PM

All replies

  • Go to the directory where you have the INF file and run ChkInf from there.  Be sure to fix all errors and warnings (some warnings cause failures).


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    • Proposed as answer by RohitGarg Thursday, September 12, 2013 3:14 PM
    • Marked as answer by Mayank07Bagaria Friday, September 13, 2013 6:22 AM
    Thursday, September 12, 2013 2:52 PM
  • Thank You ..It was really help full :)
    Friday, September 13, 2013 6:22 AM