KMDF driver install

Hi,

The problem with installing driver - KMDF (WDF) not installed.
What’s wrong?

;-------------------------------------------------------------------------
; Testd.INF – Test NDIS Protocol Driver
;-------------------------------------------------------------------------
[version]
Signature = “$Windows NT$”
Class = NetTrans
ClassGUID = {4d36e975-e325-11ce-bfc1-08002be10318}
Provider = %Mnft%
DriverVer = 06/11/2008,1.0.0.1
CatalogFile = Testd.cat

[Manufacturer]
%Mnft%=Test,NTx86

; For XP
[Test.NTx86]
%Testd_Desc%=Install_xp32, Testd_hwid

;-------------------------------------------------------------------------
; Installation Section
;-------------------------------------------------------------------------
[Install_xp32]
AddReg=Inst_Ndi
CopyFiles= CopyFiles_xp32
Characteristics=0x0

[CopyFiles_xp32]
Testd32.sys

;-------------------------------------------------------------------------
; Ndi installation support
;-------------------------------------------------------------------------
[Inst_Ndi]
HKR, Ndi, Service, “Testd”
HKR, Ndi, HelpText, %Testd_HelpText%
HKR, Ndi\Interfaces, UpperRange, “noupper”
;HKR, Ndi\Interfaces, LowerRange, “ndis5, ndis5_prot”
HKR, Ndi\Interfaces, LowerRange, “ndis5”

;-------------------------------------------------------------------------
; Service installation support
;-------------------------------------------------------------------------
[Install_xp32.Services]
AddService=Testd,Testd_Service_xp32

[Testd_Service_xp32]
LoadOrderGroup = NDIS
Description = %Testd_Desc%
DisplayName = %Testd_Desc%
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_MANUAL_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\Testd32.sys

[Install_xp32.Remove.Services]
; 0x200 - Stop the service before deleting it.
DelService=Testd,0x200

[Install_xp32.Remove]
DelFiles=CopyFiles_xp32

;-------------------------------------------------------------------------
; Testd Coinstaller installation
;-------------------------------------------------------------------------
[Install_xp32.CoInstallers]
AddReg=WDF_AddReg
CopyFiles=WDF_CopyFiles

[WDF_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller01007.dll,WdfCoInstaller”

[WDF_CopyFiles]
WdfCoInstaller01007.dll

[Install_xp32.Wdf]
KmdfService = Testd, Testd_WdfSection

[Testd_WdfSection]
KmdfLibraryVersion = 1.7

[SourceDisksFiles]
WdfCoInstaller01007.dll = 1

[DestinationDirs]
WDF_CopyFiles = 11

;-------------------------------------------------------------------------
; Declare Destination Directories for file copy/deletion
;-------------------------------------------------------------------------
[SourceDisksNames]
1=%DiskDescription%,“”,

[SourceDisksFiles]
Testd32.sys = 1

[DestinationDirs]
DefaultDestDir = 12 ; DIRID_DRIVERS

[Strings]
Mnft = “Testsoft”
DiskDescription = “Test Protocol Driver Disk”
Testd_Desc = “Test NDIS Protocol Driver”
Testd_HelpText = “Test NDIS Protocol Driver”

Inspect the SetupAPI.log file

http://www.microsoft.com/whdc/driver/install/setupapilog.mspx

Also, the WDK utility ‘Chkinf.exe’ to be very helpful in troubleshooting
basic .INF file setup issues.


From:
Sent: Friday, June 05, 2009 9:05 AM
To: “Windows System Software Devs Interest List”
Subject: [ntdev] KMDF driver install

> Hi,
>
> The problem with installing driver - KMDF (WDF) not installed.
> What’s wrong?

>Inspect the SetupAPI.log file http://www.microsoft.com/whdc/driver/install

/setupapilog.mspx
I have studied this article. In setupapi.log file of the information on errors at installation is not present.

Also, the WDK utility ‘Chkinf.exe’ to be very helpful in
troubleshooting basic .INF file setup issues.
I checked the inf-file of this tool: there are no errors, there are a few warnings. Similar results are obtained when verifying the inf-files of WDK examples.

Did you include the redistributable for KMDF with your driver when you tried
to install? You will need this if you haven’t.

On Fri, Jun 5, 2009 at 9:05 AM, wrote:

> Hi,
>
> The problem with installing driver - KMDF (WDF) not installed.
> What’s wrong?
>
> ;-------------------------------------------------------------------------
> ; Testd.INF – Test NDIS Protocol Driver
> ;-------------------------------------------------------------------------
> [version]
> Signature = “$Windows NT$”
> Class = NetTrans
> ClassGUID = {4d36e975-e325-11ce-bfc1-08002be10318}
> Provider = %Mnft%
> DriverVer = 06/11/2008,1.0.0.1
> CatalogFile = Testd.cat
>
> [Manufacturer]
> %Mnft%=Test,NTx86
>
> ; For XP
> [Test.NTx86]
> %Testd_Desc%=Install_xp32, Testd_hwid
>
> ;-------------------------------------------------------------------------
> ; Installation Section
> ;-------------------------------------------------------------------------
> [Install_xp32]
> AddReg=Inst_Ndi
> CopyFiles= CopyFiles_xp32
> Characteristics=0x0
>
> [CopyFiles_xp32]
> Testd32.sys
>
>
> ;-------------------------------------------------------------------------
> ; Ndi installation support
> ;-------------------------------------------------------------------------
> [Inst_Ndi]
> HKR, Ndi, Service, “Testd”
> HKR, Ndi, HelpText, %Testd_HelpText%
> HKR, Ndi\Interfaces, UpperRange, “noupper”
> ;HKR, Ndi\Interfaces, LowerRange, “ndis5, ndis5_prot”
> HKR, Ndi\Interfaces, LowerRange, “ndis5”
>
> ;-------------------------------------------------------------------------
> ; Service installation support
> ;-------------------------------------------------------------------------
> [Install_xp32.Services]
> AddService=Testd,Testd_Service_xp32
>
> [Testd_Service_xp32]
> LoadOrderGroup = NDIS
> Description = %Testd_Desc%
> DisplayName = %Testd_Desc%
> ServiceType = 1 ;SERVICE_KERNEL_DRIVER
> StartType = 3 ;SERVICE_MANUAL_START
> ErrorControl = 1 ;SERVICE_ERROR_NORMAL
> ServiceBinary = %12%\Testd32.sys
>
>
> [Install_xp32.Remove.Services]
> ; 0x200 - Stop the service before deleting it.
> DelService=Testd,0x200
>
> [Install_xp32.Remove]
> DelFiles=CopyFiles_xp32
>
>
> ;-------------------------------------------------------------------------
> ; Testd Coinstaller installation
> ;-------------------------------------------------------------------------
> [Install_xp32.CoInstallers]
> AddReg=WDF_AddReg
> CopyFiles=WDF_CopyFiles
>
> [WDF_AddReg]
> HKR,CoInstallers32,0x00010000, “WdfCoInstaller01007.dll,WdfCoInstaller”
>
> [WDF_CopyFiles]
> WdfCoInstaller01007.dll
>
> [Install_xp32.Wdf]
> KmdfService = Testd, Testd_WdfSection
>
> [Testd_WdfSection]
> KmdfLibraryVersion = 1.7
>
> [SourceDisksFiles]
> WdfCoInstaller01007.dll = 1
>
> [DestinationDirs]
> WDF_CopyFiles = 11
>
> ;-------------------------------------------------------------------------
> ; Declare Destination Directories for file copy/deletion
> ;-------------------------------------------------------------------------
> [SourceDisksNames]
> 1=%DiskDescription%,“”,
>
> [SourceDisksFiles]
> Testd32.sys = 1
>
> [DestinationDirs]
> DefaultDestDir = 12 ; DIRID_DRIVERS
>
> [Strings]
> Mnft = “Testsoft”
> DiskDescription = “Test Protocol Driver Disk”
> Testd_Desc = “Test NDIS Protocol Driver”
> Testd_HelpText = “Test NDIS Protocol Driver”
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Yes, of course, KMDF dll was included.
My question is how exactly is that there is no install KMDF. It would be strange if I had not included it in the distribution.