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:
; 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,SerialPortPropP ageProvider"
[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:
> Note that I said "try something like this", not "this exact text will
> cure your problem". There are plenty of usbser COM port INF's
> floating around the net, so I suggest you copy one of those. For
> example there is one in here:
>
> 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
> <KenSpikow...@discussions.microsoft.com> wrote:
>
> > After making your suggested changes, Chkinf still failed with two errors. The
> > value of 2 for the flags parameter still resulted in error "(E.22.1302)
> > Filter
> > drivers cannot be the controlling service (SPSVCINST_ASSOCSERVICE).", so I
> > changed it back to 0. I also found it necessary to remove the ".nt" from the
> > [DriverInstall.Services] section heading. However, with those changes the
> > device will not install.
> .
>