
[Version]
Signature="$Windows NT$"
DriverPackageType=PlugAndPlay
DriverPackageDisplayName=%DESC%
Class=Ports
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
Provider=%FTDI%
CatalogFile=x_diport.cat
DriverVer=08/16/2017,2.12.28

[SourceDisksNames]
1=%DriversDisk%,,,

[SourceDisksFiles]
x_ser2k.sys=1,i386
x_serui2.dll=1,i386
x_cserco.dll = 1,i386

[SourceDisksFiles.amd64]
x_ser2k.sys=1,amd64
x_serui2.dll=1,amd64
x_cserco.dll = 1,amd64

[DestinationDirs]
FtdiPort.NT.Copy=10,system32\drivers
FtdiPort.NT.CopyUI=10,system32
FtdiPort.NT.CopyCoInst=10,system32

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%FTDI%=FtdiHw,NTamd64

[FtdiHw]
%VID_0503&PID_5000.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5000
%VID_0503&PID_5001.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5001
%VID_0503&PID_5002.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5002
%VID_0503&PID_5003.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5003
%VID_0503&PID_5004.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5004
%VID_0503&PID_5005.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5005
%VID_0503&PID_5006.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5006
%VID_0503&PID_5007.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5007
%VID_0503&PID_5008.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5008
%VID_0503&PID_5009.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5009
%VID_0503&PID_5010.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5010
%VID_0503&PID_5011.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5011
%VID_0503&PID_5012.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5012
%VID_0503&PID_5013.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5013
%VID_0503&PID_5014.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0503&PID_5014

[FtdiHw.NTamd64]
%VID_0503&PID_5000.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5000
%VID_0503&PID_5001.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5001
%VID_0503&PID_5002.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5002
%VID_0503&PID_5003.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5003
%VID_0503&PID_5004.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5004
%VID_0503&PID_5005.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5005
%VID_0503&PID_5006.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5006
%VID_0503&PID_5007.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5007
%VID_0503&PID_5008.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5008
%VID_0503&PID_5009.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5009
%VID_0503&PID_5010.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5010
%VID_0503&PID_5011.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5011
%VID_0503&PID_5012.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5012
%VID_0503&PID_5013.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5013
%VID_0503&PID_5014.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0503&PID_5014

[FtdiPort.NT.AddService]
DisplayName    = %SvcDesc%
ServiceType    = 1 ; SERVICE_KERNEL_DRIVER
StartType      = 3 ; SERVICE_DEMAND_START
ErrorControl   = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\system32\drivers\x_ser2k.sys
LoadOrderGroup = Base


; -------------- Serenum Driver install section
[SerEnum_AddService]
DisplayName    = %SerEnum.SvcDesc%
ServiceType    = 1 ; SERVICE_KERNEL_DRIVER
StartType      = 3 ; SERVICE_DEMAND_START
ErrorControl   = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\serenum.sys
LoadOrderGroup = PNP Filter

[FtdiPort.NT.AddReg]
HKR,,EnumPropPages32,,"x_serui2.dll,SerialPortPropPageProvider"

[FtdiPort.NT.Copy]
x_ser2k.sys

[FtdiPort.NT.CopyUI]
x_serui2.dll

[FtdiPort.NT.CopyCoInst]
x_cserco.dll

[FtdiPort.NT]
CopyFiles=FtdiPort.NT.Copy,FtdiPort.NT.CopyUI
AddReg=FtdiPort.NT.AddReg

[FtdiPort.NTamd64]
CopyFiles=FtdiPort.NT.Copy,FtdiPort.NT.CopyUI
AddReg=FtdiPort.NT.AddReg

[FtdiPort.NT.HW]
AddReg=FtdiPort.NT.HW.AddReg

[FtdiPort.NTamd64.HW]
AddReg=FtdiPort.NT.HW.AddReg


[FtdiPort.NT.Services]
AddService = FTSER2K, 0x00000002, FtdiPort.NT.AddService
AddService = Serenum,,SerEnum_AddService
DelService = FTSERIAL

[FtdiPort.NTamd64.Services]
AddService = FTSER2K, 0x00000002, FtdiPort.NT.AddService
AddService = Serenum,,SerEnum_AddService
DelService = FTSERIAL


[FtdiPort.NT.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"serenum"
HKR,,"ConfigData",1,11,00,3F,3F,10,27,00,00,88,13,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00
HKR,,"MinReadTimeout",0x00010001,0
HKR,,"MinWriteTimeout",0x00010001,0
HKR,,"LatencyTimer",0x00010001,16


[FtdiPort.NT.CoInstallers]
AddReg=FtdiPort.NT.CoInstallers.AddReg
CopyFiles=FtdiPort.NT.CopyCoInst

[FtdiPort.NTamd64.CoInstallers]
AddReg=FtdiPort.NT.CoInstallers.AddReg
CopyFiles=FtdiPort.NT.CopyCoInst

[FtdiPort.NT.CoInstallers.AddReg]
HKR,,CoInstallers32,0x00010000,"x_cserco.Dll,FTCSERCoInstaller"


;---------------------------------------------------------------;

[Strings]
FTDI="Xhorse"
DESC="Xhorse - VCP Driver"
DriversDisk="Xhorse USB Drivers Disk"
PortsClassName = "Ports (COM & LPT)"
VID_0503&PID_5000.DeviceDesc="Xhorse Device Port"
VID_0503&PID_5001.DeviceDesc="Xhorse Keytool Port"
VID_0503&PID_5002.DeviceDesc="Xhorse VVDIProg Port"
VID_0503&PID_5003.DeviceDesc="Xhorse VVDI2 Port"
VID_0503&PID_5004.DeviceDesc="Xhorse VVDIMB Port"
VID_0503&PID_5005.DeviceDesc="Xhorse VAGMM007 Port"
VID_0503&PID_5006.DeviceDesc="Xhorse XC-007 Port"
VID_0503&PID_5007.DeviceDesc="Xhorse XCMINI Port"
VID_0503&PID_5008.DeviceDesc="Xhorse XCMINI-Plus Port"
VID_0503&PID_5009.DeviceDesc="Xhorse Keytoolpro Port"
VID_0503&PID_5010.DeviceDesc="Xhorse VVDIKeytoolplus Port"
VID_0503&PID_5011.DeviceDesc="Xhorse Dolphin Port"
VID_0503&PID_5012.DeviceDesc="Xhorse Device2 Port"
VID_0503&PID_5013.DeviceDesc="Xhorse Device3 Port"
VID_0503&PID_5014.DeviceDesc="Xhorse Device4 Port"
SvcDesc="Xhorse Port Driver"
SerEnum.SvcDesc="Serenum Filter Driver"


