On Apr 20, 8:03 pm, Ken Spikowski
Here is the INF file:
; For 32 or 64 bit Windows from XP to Windows 7. Setup File for DATAQ CDC
; Copyright (c) 2010 Dataq Instruments, Inc.
[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%DATAQ%
CatalogFile=dataq160.cat
DriverVer=04/15/2010,1.0.2
[SourceDisksNames]
1=%DriversDisk%,,,
[SourceDisksFiles]
[Manufacturer]
%DATAQ%=DeviceList,NTamd64
[DeviceList]
%DATAQ_CDC%=DriverInstall,USB\VID_0683&PID_0160
[DeviceList.NTamd64]
%DATAQ_CDC_64BIT%=DriverInstall,USB\VID_0683&PID_0160
[DriverInstall]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=LowerFilterAddReg,SerialPropPageAddReg
[DriverInstall.Services]
include = mdmcpq.inf
AddService = usbser, 0x00000000, LowerFilter_Service_Inst
; This adds the serial port property tab to the device properties dialog
[SerialPropPageAddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[Strings]
DATAQ = "Dataq Instruments, Inc."
DriversDisk="DATAQ DI-160 Drivers Disk"
DATAQ_CDC = "DATAQ CDC USB to UART"
DATAQ_CDC_64BIT = "DATAQ CDC USB to UART 64BIT"
Serial.SvcDesc = "USB Serial emulation driver"
"Chris" wrote:
> .
>
> If the flag is 0, Windows XP i386 New Hardware Wizard fails to install the
> device, and Setupapi.log records:
Sorry, sorry, I got that backwards (it's been awhile). "2" is a
function driver and "0" is a filter driver. So "2" is what you want.
Which really leads to your real problem: you're trying to install
usbser as a lower filter on a Ports stack, and there is no function
driver. Note from your INF:
AddReg=LowerFilterAddReg,SerialPropPageAddReg
[DriverInstall.Services]
include = mdmcpq.inf
AddService = usbser, 0x00000000, LowerFilter_Service_Inst
You need to install it as the standalone driver. Try something like
this:
[DriverInstall.nt.Services]
include=mdmcpq.inf
AddService=usbser, 0x00000002, DriverService
[DriverService]
include=mdmcpq.inf
DisplayName=%Serial.SvcDesc%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys
"Chris" wrote:
> .
>
http://www.st.com/stonline/books/pdf/docs/12571.pdf
Or here:
http://www.lvr.com/files/usbcomport.txt
On Apr 21, 3:43 pm, Ken Spikowski
; For 32 or 64 bit Windows from XP to Windows 7. Setup File for DATAQ CDC
; Copyright (c) 2010 Dataq Instruments, Inc.
[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%PRVDR%
CatalogFile=dataq160.cat
DriverVer=04/21/2010,1.0.3
[SourceDisksNames]
1=%DriversDisk%,,,
[SourceDisksFiles]
[Manufacturer]
%MFGNAME%=VirComDevice,NT,NTamd64
[DestinationDirs]
DefaultDestDir = 12
[VirComDevice.NT]
%DESCRIPTION%=DriverInstall,USB\VID_0683&PID_0160
[VirComDevice.NTamd64]
%DESCRIPTION%=DriverInstall,USB\VID_0683&PID_0160
[DriverInstall.NT]
Include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=DriverInstall.NT.AddReg
[DriverInstall.NT.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[DriverInstall.NT.Services]
AddService=usbser, 0x00000002, DriverServiceInst
[DriverServiceInst]
DisplayName=%SERVICE%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary= %12%\usbser.sys
LoadOrderGroup = Base
[Strings]
PRVDR = "DATAQ"
MFGNAME = "DATAQ Instruments, Inc."
DESCRIPTION = "DATAQ USB CDC"
SERVICE = "DATAQ USB CDC driver"
DriversDisk = "DATAQ DI-160 Drivers Disk"
"Chris" wrote:
> .
>
> Thank you for the suggestions. We came up with the following, which uses a
> value of 2 for flags, passes ChkInf, and installs on both i386 and amd64
> systems:
Outstanding, glad to be of service sir.