none
Problem with driver testing RRS feed

  • Question

  • Hi! I'm trying to setup automatic driver deployment and testing on Windows 8.1. I successfully setuped debugger and connection to target machine, but I have problem with deployment and driver installation.
    I wrote inf file for my driver

    ;
    ; MyDriver1.inf
    ;
    
    [Version]
    Signature="$WINDOWS NT$"
    Class=Unknown
    ClassGuid={4d36e97e-e325-11ce-bfc1-08002be10318}
    Provider=%ManufacturerName%
    DriverVer=04/10/2018,16.46.1.940
    CatalogFile=MyDriver1.cat
    
    [DestinationDirs]
    DefaultDestDir = 12
    
    [SourceDisksFiles]
    MyDriver1.sys=1
    
    [SourceDisksNames]
    1 = %DiskName%,,,""
    
    [DefaultInstall]
    CopyFiles=DriverCopyFiles
    AddReg=MyDriver1Addreg
    
    [DriverCopyFiles]
    MyDriver1.sys,,,0x4		; replace always
    
    [MyDriver1Addreg]
    
    
    
    [DefaultInstall.Services]
    AddService=MyDriver1,0x00000800,MyDriver1Service
    
    [MyDriver1Service]
    ServiceName=MyDriver1
    ServiceType=1
    StartType=2
    ErrorControl=1
    ServiceBinary=%12%\MyDriver1.sys
    DisplayName=%DESCRIPTION%
    Description=%DESCRIPTION%
    
    [Strings]
    ManufacturerName="Pavel"
    DiskName="MyDriver1 Source Disk"
    DESCRIPTION="MyDriver1 driver"

    And i can install and run my driver with this inf file, but if i want install this driver from visual studio i get an error

    <Error
    File=""
    Line="-1"
    ErrCode="0x0"
    ErrType=""
    ErrorText="Error 0x00000000"
    UserText="WDTF_TEST : System has no device the driver package can be installed onto." CA="3178711" LA="3178821" >

    in install logs. What i must change in my inf file for successfully driver installation? My driver isn't a device driver.


    • Edited by drem1lin Friday, April 13, 2018 7:19 AM
    Friday, April 13, 2018 7:17 AM

Answers

  • Wdk deployment expects pnp driver packages, not DefaultInstall style packages

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

    Friday, April 13, 2018 3:25 PM

All replies

  • Most professional driver writers completely ignore the WDK deployment stuff.  Instead they manually deploy the package the first time, and then use Windbg's .kdfiles to replace the driver on the test machine.

    WDK deployment is a nice concept that unfortunately is extremely hard to get running, and to keep running.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Friday, April 13, 2018 10:54 AM
  • Thank you for your reply. I usually use Virtual KD + VmWare to debug my drivers, but i want to setup WDK deployment as experiment
    Friday, April 13, 2018 11:12 AM
  • Wdk deployment expects pnp driver packages, not DefaultInstall style packages

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

    Friday, April 13, 2018 3:25 PM