;QTUSBPT2.INF
;Windows XP/Vista/7
;Child port installation file for Quatech USB multiport serial devices
;Copyright (c) 2001-2011 Quatech, Incorporated
;Version 7.60

[Version]
signature="$WINDOWS NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%Quatech%
DriverVer=09/30/2011,7.60
CatalogFile=qtusbpt2.cat

;----------------------------------------------------------
; Class "Ports" Section
;
; If there are builtin serial ports on the computer, Windows will have already
; installed this class.  This section guards against the possibility that the
; class isn't already present.  We use the standard msports.dll class installer DLL.
;
;
;[ClassInstall]
;AddReg=PortsClass.AddReg
;
;[PortsClass.AddReg]
;HKR,,,,%PortsClassName%
;
;[ClassInstall32.NT]
;AddReg=PortsClass.NT.AddReg
;
;[PortsClass.NT.AddReg]
;HKR,,,,%PortsClassName%
;HKR,,Icon,,"-23"
;HKR,,Installer32,,"MsPorts.Dll,PortsClassInstaller"
;


;----------------------------------------------------------
; Manufacturer Section
[Manufacturer]
%Quatech%=Quatech,NTAMD64

; Models section for Windows XP and later 32-bit systems
[Quatech]
%PortConfig.DeviceDesc%=Port, QT_USB_SERIAL

; Models section for Windows XP and later 64-bit systems (AMD x64 and Intel x64)
[Quatech.NTAMD64]
%PortConfig.DeviceDesc%=Port.NTAMD64, QT_USB_SERIAL

[ControlFlags]
ExcludeFromSelect=QT_USB_SERIAL


;------------------------------------------------------------------------
; Files sections

[SourceDisksNames]
1 = %DiskName%,,,""

[SourceDisksFiles]
qtucomco.dll   = 1,,
qtucomco64.dll = 1,,
qtucompp.dll   = 1,,
qtucompp64.dll = 1,,

; DLLs go to the system directory (11).
; Drivers go to the system32\drivers directory (12).
[DestinationDirs]
DefaultDestDir  = 12
DLLFiles        = 11
DLLFiles64      = 11

;All these files are copied by the box INF, so commented out here.

[DLLFiles]
;qtucomco.dll
;qtucompp.dll

[DLLFiles64]
;qtucomco64.dll
;qtucompp64.dll


;************************************************************************
; 32-bit install section

[Port.NT]
AddReg=Port.NT.AddReg

[Port.NT.AddReg]
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"qtucompp.dll,SerialPortPropPageProvider"

; The serenum filter driver causes boot-time problems on some
; computers.  It is disabled by default.  If you require
; plug-and-play enumeration of serial devices such as external
; modems, remove the leading semicolons from the next five lines
; before installing the USB device.  See also the "Services" section below.
;[Port.NT.HW]
;AddReg=Port.NT.HW.AddReg
;
;[Port.NT.HW.AddReg]
;HKR,,"UpperFilters",0x00010000,"serenum"


;************************************************************************
; 64-bit install section

[Port.NTAMD64]
AddReg=Port.NTAMD64.AddReg
SyssetupPnPFlags = 1

[Port.NTAMD64.AddReg]
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"qtucompp64.dll,SerialPortPropPageProvider"

; The serenum filter driver causes boot-time problems on some
; computers.  It is disabled by default.  If you require
; plug-and-play enumeration of serial devices such as external
; modems, remove the leading semicolons from the next five lines
; before installing the USB device.  See also the "Services" section below.
;[Port.NTAMD64.HW]
;AddReg=Port.NTAMD64.HW.AddReg
;
;[Port.NTAMD64.HW.AddReg]
;HKR,,"UpperFilters",0x00010000,"serenum"


;------------------------------
; 32-bit coinstaller section

[Port.NT.CoInstallers]
CopyFiles=DLLFiles
AddReg=Port.NT.CoInst.AddReg

[Port.NT.CoInst.AddReg]
HKR,,CoInstallers32,0x00010000,"qtucomco.dll,USBPortCoInstaller"


;------------------------------
; 64-bit coinstaller section

[Port.NTAMD64.CoInstallers]
CopyFiles=DLLFiles64
AddReg=Port.NTAMD64.CoInst.AddReg

[Port.NTAMD64.CoInst.AddReg]
HKR,,CoInstallers32,0x00010000,"qtucomco64.dll,USBPortCoInstaller"


;------------------------------
; 32-bit services section

[Port.NT.Services]
AddService = qtucompt, 0x00000002, USBToSerialPortService

; To enable serenum (see above), remove the leading semicolons
; from the next two lines before installing the SDS.
;Include = msports.inf
;Needs = SerialEnumerator.NT.Services

[USBToSerialPortService]
DisplayName    = %ServiceDesc%
ServiceType     = 1             ; SERVICE_KERNEL_DRIVER
StartType       = 3             ; SERVICE_DEMAND_START
ErrorControl    = 1             ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\qtucompt.sys


;------------------------------
; 64-bit services section

[Port.NTAMD64.Services]
AddService = qtucompt64, 0x00000002, USBToSerialPortService64

; To enable serenum (see above), remove the leading semicolons
; from the next two lines before installing the SDS.
;Include = msports.inf
;Needs = SerialEnumerator.NTAMD64.Services

[USBToSerialPortService64]
DisplayName    = %ServiceDesc%
ServiceType     = 1             ; SERVICE_KERNEL_DRIVER
StartType       = 3             ; SERVICE_DEMAND_START
ErrorControl    = 1             ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\qtucompt64.sys

;------------------------------------------------------------------------
; Strings section

[Strings]
Quatech="Quatech, Incorporated"
DiskName="USB-To-Serial Adapter Drivers"

PortConfig.DeviceDesc="USB Serial Port"
ServiceDesc="USB-to-Serial Port Driver"
PortsClassName = "Ports (COM & LPT)"
