; CHIPSER.INF
; Driver for CHIP (USB=>SERIAL CHIP) V2.8
; WDM&VXD for Windows 98/ME/2000/XP
; Copyright (C) W.ch 2001-2007
;

[Version]
signature="$CHICAGO$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider  = %WinCHIPHead%
DriverVer = 09/24/2007, 2.8.2007.09

[ControlFlags]
ExcludeFromSelect = USB\VID_1A86&PID_7523
ExcludeFromSelect = USB\VID_1A86&PID_5523
ExcludeFromSelect = USB\VID_4348&PID_5523
ExcludeFromSelect = USB\VID_4348&PID_5523&REV_0250
ExcludeFromSelect = USBSERPORT\SER5523
ExcludeFromSelect = CHIPPORT\SER5523

[Manufacturer]
%WinCHIPHead% = WinCHIPHead,NTamd64

[WinCHIPHead.NTamd64]   ;x64系统安装段
%CH340SER.DeviceDesc% = CHIPSER_Install, USB\VID_1A86&PID_7523
%CHIPASER.DeviceDesc% = CHIPSER_Install, USB\VID_1A86&PID_5523
%CHIPSER.DeviceDesc% = CHIPSER_Install, USB\VID_4348&PID_5523
%CH340SER.DeviceDesc% = CHIPSER_Install, USB\VID_4348&PID_5523&REV_0250
%CHIPS98.DeviceDesc% = CHIPSER_Install, USBSERPORT\SER5523
%CHIPS98.DeviceDesc% = CHIPSER_Install, CHIPPORT\SER5523

[CHIPSER_Install]
DelFiles  = CHIPS98.DelFiles.SYS
CopyFiles = CHIPSER.CopyFiles.SYS, CHIPSER.CopyFiles.DLL
AddReg    = CHIPSER.9X.AddReg, CHIPSER.AddReg

[CHIPSER_Install.NT]
CopyFiles = CHIPSER.NT.CopyFiles.SYS, CHIPSER.CopyFiles.DLL,CHIPS64.CopyFiles.DLL
AddReg    = CHIPSER.NT.AddReg, CHIPSER.AddReg


[CHIPSER_Install.NT.HW]
AddReg    = CHIPSER.NT.HW.AddReg

[CHIPS98_Install]
DelFiles  = CHIPS98.DelFiles.SYS
CopyFiles = CHIPS98.CopyFiles.VXD, CHIPSER.CopyFiles.SYS
AddReg    = CHIPS98.9X.AddReg, CHIPS98.AddReg

[CHIPS98_Install.NT]

[CHIPS98.DelFiles.SYS]
CHIPS98.SYS, , , 1

[CHIPSER.CopyFiles.SYS]
CHIPS98.SYS, , , 2

[CHIPSER.NT.CopyFiles.SYS]
CHIPSER.SYS, , , 2

[CHIPS98.CopyFiles.VXD]
CHIPSER.VXD, , , 2

[CHIPSER.CopyFiles.DLL]
CHIPPT.DLL, , , 2
;安装DLL是可选的,DLL可以用于识别CHIP端口和监视CHIP端口的插拔事件

[CHIPS64.CopyFiles.DLL];X64系统DLL拷贝目录
CHIPPT.DLL, , , 2

[CHIPSER.9X.AddReg]
HKR, , DevLoader, , *NTKERN
HKR, , NTMPDriver, , CHIPS98.SYS

[CHIPSER.NT.AddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[CHIPSER.NT.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"serenum"
;上面这行用于枚举接在串口的即插即用设备,启动时将产生DTR和RTS信号,如果需要枚举,请将上面这行的分号去掉

[CHIPS98.9X.AddReg]
HKR, , DevLoader, , *vcomm
HKR, , PortDriver, , CHIPSER.VXD
HKR, , Contention, , *vcd
HKR, , ConfigDialog, , serialui.dll
HKR, , DCB, 3, 1C,00,00,00, 80,25,00,00, 11,00,00,00, 00,00,0A,00, 0A,00,08,00, 00,11,13,00, 00,00,00,00
HKR, , PortSubClass, 1, 01
HKR, , EnumPropPages, , "serialui.dll,EnumPropPages"
HKR, , Enumerator, , serenum.vxd
;上面这行用于枚举接在串口的即插即用设备,启动时将产生DTR和RTS信号,如果需要枚举,请将上面这行的分号去掉

[CHIPSER.AddReg]
HKLM, SOFTWARE\WinCHIPHead\IC\CHIPSER, WDM, 0x00010001, 0x00000028
HKLM, SOFTWARE\WinCHIPHead\IC\CHIPPORT, DLL, 0x00010001, 0x00000010
HKLM, SOFTWARE\WinCHIPHead\IC\CHIPSER, Function, , "USB=>Serial"
;HKLM, SYSTEM\CurrentControlSet\Services\CHIPSER, UserRemoval, 0x00010001, 0x00000001
;上面这行用于在系统托盘中显示“安全删除USB转SERIAL硬件设备”，便于用户手工删除硬件

[CHIPS98.AddReg]
HKLM, SOFTWARE\WinCHIPHead\IC\CHIPSER, VXD, 0x00010001, 0x00000022

[CHIPSER_Install.NT.Services]
AddService = CHIPSER, 2, CHIPSER.Service
AddService = Serenum, , Serenum_Service_Inst

[CHIPSER.Service]
DisplayName   = "CHIPSER"
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\System32\Drivers\CHIPSER.SYS

[Serenum_Service_Inst]
DisplayName    = "SerEnum"
ServiceType    = 1
StartType      = 3
ErrorControl   = 1
ServiceBinary  = %12%\serenum.sys
LoadOrderGroup = PNP Filter

[DestinationDirs]
DefaultDestDir      = 12
CHIPS98.DelFiles.SYS = 11
CHIPSER.CopyFiles.SYS = 12
CHIPSER.NT.CopyFiles.SYS = 12
CHIPS98.CopyFiles.VXD = 11
CHIPSER.CopyFiles.DLL = 11
CHIPS64.CopyFiles.DLL = 10,Syswow64 

[SourceDisksFiles]
CHIPSER.SYS  = 1
CHIPS98.SYS  = 1
CHIPSER.VXD  = 1

[SourceDisksNames]
1 = "CHIP Serial Installation Disk", CHIPSER.INF, ,

[Strings]
WinCHIPHead      = " "
CHIPSER.DeviceDesc = "USB-SERIAL"
CHIPS98.DeviceDesc = "USB-SERIAL"
CH340SER.DeviceDesc = "USB-SERIAL"
CHIPASER.DeviceDesc = "USB-SERIAL_A"
