;*****************************************************************************
;
; Windows Virtual Serial Port Setup File
; Copyright (c) 2011 ZTE Incorporated
; Manufacturer: ZTE Incorporated
;
;This INF file installs a virtual COM port on 32-bit and 64-bit Windows OS, such as Windows XP, Vista and Win7.
;
;*****************************************************************************

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

[ControlFlags]
ExcludeFromSelect = *

[SourceDisksNames.x86]
; diskid = description[, [tagfile] [, <unused>, subdir]]
1 = %ZTESRCDISK%,,,\i386

[SourceDisksNames.amd64]
; diskid = description[, [tagfile] [, <unused>, subdir]]
1 = %ZTESRCDISK%,,,\amd64

[SourceDisksFiles]
; filename = diskid[,[ subdir][, size]]
zghstrace.sys = 1,,

;-----------------------------------------------------------------------------
; Specify target paths...
;-----------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir = 12
ZTEportInstall.NT.Copy=12

;-----------------------------------------------------------------------------
; Table of Contents
;-----------------------------------------------------------------------------
[Manufacturer]
%ZTE% = ZTEcomSerialPort, NTamd64

;-----------------------------------------------------------------------------
; Device-by-device entries
;-----------------------------------------------------------------------------
[ZTEcomSerialPort]
;P843W
%ZTEDevice0251% = ZTEportInstall, USB\VID_19D2&PID_0251&MI_03
%ZTEDevice0252% = ZTEportInstall, USB\VID_19D2&PID_0252&MI_03

[ZTEcomSerialPort.NTamd64]
;P843W
%ZTEDevice0251% = ZTEportInstall, USB\VID_19D2&PID_0251&MI_03
%ZTEDevice0252% = ZTEportInstall, USB\VID_19D2&PID_0252&MI_03

;-----------------------------------------------------------------------------
; Installation instructions
;-----------------------------------------------------------------------------
[ZTEportInstall.NT]
CopyFiles=ZTEportInstall.NT.Copy
AddReg = All, AddReg.NT

[ZTEportInstall.NT.Copy]
zghstrace.sys

[ZTEportInstall.NT.Services]
AddService = zghstrace, 0x00000002, ZTEport_Service_Inst

[ZTEport_Service_Inst]
DisplayName   = %ZTEcomSerialPortName%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %12%\zghstrace.sys

[All]
HKR,,NTMPDriver,,zghstrace.sys

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

[Strings]
ZTE                      = "ZTE Corporation"
ZTESRCDISK               = "ZTE Multimedia USB COM Driver Disk"
ZTEDevice0251            = "ZTE Handset Trace Interface"
ZTEDevice0252            = "ZTE Handset Trace Interface"
ZTEcomSerialPortName     = "ZTE General Handset Trace Port"