none
Can't install drivers on windows 7 32 bits RRS feed

  • Question

  • Hi, I am new on windows driver development.

    I compile the driver source code with below command, it seems compile passed, gernerate the .sys file.

    pushd .
    call C:\WinDDK\7600.16385.1\bin\setenv.bat C:\WinDDK\7600.16385.1\ fre WIN7
    popd
    :start
    build -cZg

    And then I use device manager install this driver with a exist .inf file and this .sys file. But windows always show this dialog.

    Thursday, April 11, 2013 5:10 AM

Answers

  • You need to do two things:

    1.  In the tools folder of the WDK is ChkInf run that and fix all the errors and warnings that appear.

    2.  Enable SetupAPI logging see http://msdn.microsoft.com/en-us/library/windows/hardware/ff550887(v=vs.85).aspx on the test system.  This will give you a detailed report of the install failure.  Hopefully that will allow you to figure out the problem.  If not post the relavent portion of the log back here.


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

    Thursday, April 11, 2013 10:54 AM

All replies

  • You need to do two things:

    1.  In the tools folder of the WDK is ChkInf run that and fix all the errors and warnings that appear.

    2.  Enable SetupAPI logging see http://msdn.microsoft.com/en-us/library/windows/hardware/ff550887(v=vs.85).aspx on the test system.  This will give you a detailed report of the install failure.  Hopefully that will allow you to figure out the problem.  If not post the relavent portion of the log back here.


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

    Thursday, April 11, 2013 10:54 AM
  • >>>  [Build Driver List - ROOT\UNKNOWN\0000]
    >>>  Section start 2013/04/11 07:50:46.687
          cmd: "C:\Windows\system32\mmc.exe" C:\Windows\system32\devmgmt.msc
         cpy: Policy is set to make all digital signatures equal.
    !    inf: Error (0x000004c7) searching INFs in directory: 'C:\Windows\inf'
    !    inf: Error 1223: The operation was canceled by the user.
    !    inf: InfSearch error
    !    inf: Error 1223: The operation was canceled by the user.
    <<<  Section end 2013/04/11 07:50:47.609
    <<<  [Exit status: FAILURE(0x000004c7)]

    Above I think is the error,  is it enough ?

    thanks a lot.

    Thursday, April 11, 2013 3:06 PM
  • post your INF

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

    Thursday, April 11, 2013 5:49 PM
  • [Version]
    Signature=$Windows NT$
    Provider=%TEK%
    Class=USB
    ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
    DriverVer=11/21/2011,1000.10
    CatalogFile=TekUTI.cat

    ;--------- SourceDiskNames and SourceDiskFiles Section ---------------------

    [SourceDisksNames.x86]
    1 = %InstallDiskName%,,,i386

    [SourceDisksNames.amd64]
    1 = %InstallDiskName%,,,amd64

    [SourceDisksFiles]
    TekUTI.sys = 1

    ;===========================================================================

    [DestinationDirs]
    TEKUTI.Files.Ext = 12

    [Manufacturer]
    %MfgName%=Tektronix,NTx86,NTamd64

    [Tektronix.NTx86]
    %DeviceDesc%=TEKUTI.Dev, USB\VID_0699&PID_FFFE

    [Tektronix.NTamd64]
    %DeviceDesc%=TEKUTI.Dev, USB\VID_0699&PID_FFFE

    ;[PreCopySection]
    ;HKR,,NoSetupUI,,1

    [TEKUTI.Dev]
    CopyFiles=TEKUTI.Files.Ext
    AddReg=TEKUTI.AddReg

    [TEKUTI.Dev.Services]
    Addservice = TEKUTI, 0x00000002, TEKUTI.AddService

    [TEKUTI.AddService]
    DisplayName    = %TEKUTI.SvcDesc%
    ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
    StartType      = 3                  ; SERVICE_DEMAND_START
    ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
    ServiceBinary  = %10%\System32\Drivers\TEKUTI.sys
    LoadOrderGroup = Base
    AddReg         = TekUTISvc.AddReg

    [TEKUTI.AddReg]
    HKR,,DevLoader,,*ntkern
    HKR,,NTMPDriver,,TEKUTI.sys

    [TekUTISvc.AddReg]
    HKR,"Parameters","MaximumTransferSize",0x10001,4096
    HKR,"Parameters","DebugFlags",0x10001,3
    HKR,"Parameters","SelSuspEnable",0x10001,0

    [TEKUTI.Files.Ext]
    TEKUTI.sys


    ;---------------------------------------------------------------;

    [Strings]
    TEK="Tektronix"
    MfgName="Tektronix"
    DeviceDesc="TekUTI.Sys Tektronix USB-TMC Instrument Device"
    TEKUTI.SvcDesc="TekUTI.Sys Tektronix USB-TMC Instrument Driver"
    InstallDiskName="Tektronix USBTMC Driver Installation Disk"

    Thursday, April 11, 2013 9:48 PM
  • for the usb device that you are selecting in device manager and trying to update the driver, what is its hardware ID? you can see it in the details tab, select the hardware IDs property.  for this inf to work, one of the entries must be USB\VID_0699&PID_FFFE.

    I would strongly suggest running chkinf and fixing all reported errors. BTW, this section and lines are not needed, they went away with win9x

    [TEKUTI.AddReg]
    HKR,,DevLoader,,*ntkern
    HKR,,NTMPDriver,,TEKUTI.sys


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

    Friday, April 12, 2013 6:30 AM
  • Thanks

    Last time I posted the .inf file was fixed the error reported from chkinf.

    Monday, April 15, 2013 1:58 AM