Re: WdfConInstaller 1.7 does not seem to install on WinXP SP3




The coinstaller should still be invoked and you will log entries on the setuplog even in the framework is on the system.

It is unclear from your original email - is the KMDF echo driver working correctly on your system? If so this is likely a problem with your driver.

Does the same driver package work correctly on Win2k?

Based on the info below it seems you have 2 issues:

1. Error 39 - this is probably an issue in your INF file that isn't copying the WDF coinstaller or other files properly to the system. Run chkinf (a tool in the WDK) and see if it reports any issues with your INF file.

2. Error 10 - your driver is failing somewhere in it's start path. Connect a debugger and see exactly where it is failing.

Brandon

"John Bond" <johnbond@xxxxxxxxxxxxxxxx> wrote in message news:73C9F7DE-B195-4550-9CD0-CE18BBBCE9BE@xxxxxxxxxxxxxxxx
After many trials, I was able, or so I thought, to get WinDDK 6001.18002 WDF
coinstaller for KMDF to install on my driver test machine with my device's
INF. When I delivered it to the customer, he got error 39 (0x27) when
installing the driver. I reproduced it by doing a fresh install of WinXP SP3
(on a different hard drive).

I went back through my notes and realized that as I worked to get TraceView
working, I had installed the KMDF Echo driver... which seems to be when my
INF started working. My error number changed to error 10.

Is there a way to get my customer's installation working (3000 operator
terminals) as they upgrade from Win2000 to WinXP?

setupapi.log shows only two lines regarding the CoInstallers:
#-046 Processing Coinstaller registration section
[mt2ha.ntx86.INSTALL.CoInstallers].
@ 10:58:49.250 #V056 Coinstallers registered.

BUT, there are no lines for the WdfCoInstaller in the file setupact.log, as
there are in the machine where I installed the KMDF Echo driver:

Input Install: Quiet install requested.
Input Install: Not a PS2 device.
WdfCoInstaller: [05/19/2009 10:41.08.421] DIF_INSTALLDEVICE: Pre-Processing

WdfCoInstaller: [05/19/2009 10:41.08.500] ReadComponents: WdfSection for
Driver Service ECHO using KMDF lib version Major 0x1, minor 0x7

WdfCoInstaller: [05/19/2009 10:41.08.515] DIF_INSTALLDEVICE: Coinstaller
version: 1.7.6001

WdfCoInstaller: [05/19/2009 10:41.08.531] GetControlKey:
RegOpenKeyEx(HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Wdf\Kmdf\KmdfLibrary\Versions) failed: error(2) The system cannot find the file specified.


WdfCoInstaller: [05/19/2009 10:41.08.546] DIF_INSTALLDEVICE: KMDF in-memory
version: 0.0.0

WdfCoInstaller: [05/19/2009 10:41.08.640] VerifyMSRoot: exit: error(0) The
operation completed successfully.


WdfCoInstaller: [05/19/2009 10:41.08.718] Invoking
"C:\WINDOWS\Temp\WdfTemp\Microsoft Kernel-Mode Driver Framework
Install-v1.7-Win2k-WinXP-Win2k3.exe /quiet /o /ER".

WdfCoInstaller: [05/19/2009 10:41.22.218] Update process returned error code
0 :error(0) The operation completed successfully.


WdfCoInstaller: [05/19/2009 10:41.22.234] InstallComponents: KMDF installed
successfully

WdfCoInstaller: [05/19/2009 10:41.24.031] DIF_INSTALLDEVICE: Post-Processing

As you can see from the above, this install was effected by the KMDF Echo
sample, not by my INF.


Below is the content of the latest INF file for my device driver:

; INF file for AudioCodes MT2HA adapter and its driver: MT2HAdriver.sys
; Copyright 2009 (c) AudioCodes, Inc.

[Version]
Signature="$Windows NT$"
Class=GUID_DEVCLASS_MT2HA
ClassGUID={CAA07D4E-D680-416c-A01D-4097D0DEBDB2}
Provider=%mt2ha.Provider%
CatalogFile=MT2HAdriver.cat
DriverVer=06/26/2009,1.0.0.63

[Manufacturer]
%mt2ha.Manufacturer%=mt2ha,ntx86

[ClassInstall32]
AddReg=mt2ha.AddClassReg

[mt2ha.ntx86]
%mt2ha.DeviceDesc%=mt2ha.ntx86.INSTALL, PCI\VEN_10B5&DEV_9050&SUBSYS_00031523

[SourceDisksNames]
1=%mt2ha.DriverDiskName%,"",1

[SourceDisksFiles]
MT2HAdriver.sys=1
WdfCoInstaller01007.dll=1
mt2hadll.dll=1
MTAnalyzer.dll=1

[DestinationDirs]
Mt2000.CopyFilesDLL = 11
DefaultDestDir = 12
mt2ha_CoInstaller_CopyFiles = 11

[mt2ha.ntx86.CoInstallers]
AddReg=mt2ha_CoInstaller_AddReg
CopyFiles=mt2ha_CoInstaller_CopyFiles

[mt2ha_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01007.dll,WdfCoInstaller"

[mt2ha_CoInstaller_CopyFiles]
WdfCoInstaller01007.dll

[mt2ha.ntx86.Wdf]
KmdfService = mt2ha, mt2ha_wdfsect

[mt2ha_wdfsect]
KmdfLibraryVersion = 1.7

[mt2ha.AddClassReg]
HKR,,,,%mt2ha.ClassName%


[mt2ha.ntx86.INSTALL]
CopyFiles=mt2ha.CopyFiles
CopyFiles=Mt2000.CopyFilesDLL

[mt2ha.ntx86.INSTALL.Services]
AddService = mt2ha,0x00000002,mt2ha_Service_Inst,mt2ha_EventLog_Inst

[mt2ha_Service_Inst]
ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%
StartType = 3 ;%SERVICE_AUTO_START%
ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\MT2HAdriver.sys
DisplayName = %mt2ha.DeviceDesc%

[mt2ha_EventLog_Inst]
AddReg=mt2ha.AddEventLogReg

[mt2ha.AddEventLogReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\MT2HAdriver.sys"
HKR,,TypesSupported,0x00010001,7


[mt2ha.CopyFiles]
MT2HAdriver.sys


[Mt2000.CopyFilesDLL]
mt2hadll.dll
MTAnalyzer.dll

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

[Strings]
mt2ha.Provider="AudioCodes, Inc."
mt2ha.Manufacturer="AudioCodes, Inc."
mt2ha.DeviceDesc="AudioCodes MT2HA Driver"
mt2ha.ClassName="MT2HA Device"
mt2ha.DriverDiskName="MT2HA Installation Diskette"

--
Mr. Fixit needs your help! - John Bond , LLC

.



Relevant Pages

  • Re: Calling inf file or installing .sys file from DriverEntry func
    ... Actually the USB device has a cryptograpic functionlity and i need to create ... The task is to install the Smart card reader driver as well as USB ... I already provided sample .inf file in my previous reply. ...
    (microsoft.public.development.device.drivers)
  • Re: Calling inf file or installing .sys file from DriverEntry func
    ... Driver installation framework passes the hardware ID to inf. ... The task is to install the Smart card reader driver as well as USB ... I already provided sample .inf file in my previous reply. ...
    (microsoft.public.development.device.drivers)
  • Re: IOCTL_INTERNAL_MOUSE_CONNECT Equivalent for the Bluetooth Stack
    ... and just put your driver at the front of the list. ... > ClasFilt Sample INF File ... > demonstrates the installation of a class filter driver that will be ... Users can install INF files based on ...
    (microsoft.public.development.device.drivers)
  • Re: Calling inf file or installing .sys file from DriverEntry func
    ... Actually the USB device has a cryptograpic functionlity and i need to ... The task is to install the Smart card reader driver as well as USB ... I already provided sample .inf file in my previous reply. ...
    (microsoft.public.development.device.drivers)
  • Re: Cant install driver on XPe SP1
    ... resources in the new INF file. ... In facts, I can't even manually install the driver from XPe, though I was ... #-166 Device install function: DIF_SELECTBESTCOMPATDRV. ...
    (microsoft.public.windowsxp.embedded)

Loading