;
; RAYON SERIAL W2K/XP  V1.0.5
;
; Version section
;
[Version]
Signature="$Windows NT$"
Class=MultiPortSerial
ClassGuid={50906CB8-BA12-11D1-BF5D-0000F805F530}
Provider=%Mfg%
DriverVer=03/11/2008,1.5.0.0

[ControlFlags]
ExcludeFromSelect = PCI\VEN_10B5&DEV_9050,PCI\VEN_144A&DEV_9050,PCI\VEN_9710&DEV_9845
;
; Manufacturer Section
;
[Manufacturer]
%Mfg%=RAYONMfg

;
; Manufacturer Name Section
;
[RAYONMfg]
%PCI588.DevDesc%=PCI588,PCI\VEN_10B5&DEV_9050&SUBSYS_158810B5
%PCI584.DevDesc%=PCI584,PCI\VEN_10B5&DEV_9050&SUBSYS_158410B5
%PCI124.DevDesc%=PCI124,PCI\VEN_10B5&DEV_9050&SUBSYS_112410B5
%PCI518.DevDesc%=PCI518,PCI\VEN_144A&DEV_9050&SUBSYS_151810B5
%PCI514.DevDesc%=PCI514,PCI\VEN_144A&DEV_9050&SUBSYS_151410B5
%PCI64N.DevDesc%=PCI64N,PCI\VEN_10B5&DEV_9050&SUBSYS_889810B5
%PCI64M.DevDesc%=PCI64M,PCI\VEN_10B5&DEV_9050&SUBSYS_888810B5
%PCI220.DevDesc%=PCI220,PCI\VEN_10B5&DEV_9050&SUBSYS_122010B5
%PCI422.DevDesc%=PCI422,PCI\VEN_10B5&DEV_9050&SUBSYS_142210B5
%PCI232.DevDesc%=PCI232,PCI\VEN_10B5&DEV_9050&SUBSYS_123210B5
%PCI984.DevDesc%=PCI984,PCI\VEN_9710&DEV_9845&SUBSYS_00141000

[SourceDisksNames]
1=%DiskName%,,

[SourceDisksFiles]
pci58x.sys=1
pport.sys=1
iport.sys=1
mport.sys=1
nport.sys=1
rport.dll=1

;
; Install Section
;
[PCI588]
AddReg      = P588_AddRegistry
CopyFiles=DLL.Copy,PCIDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI588.Services]
AddService  = pport,, PCI_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI588.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
[PCI584]
AddReg      = P584_AddRegistry
CopyFiles=DLL.Copy,PCIDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI584.Services]
AddService  = pport,, PCI_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI584.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
;
;   OEMPORT PCI124
;
[PCI124]
AddReg      = P124_AddRegistry
CopyFiles=DLL.Copy,INDDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI124.Services]
AddService  = iport,, IND_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI124.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
;   INDPORT PCI518
[PCI518]
AddReg      = P518_AddRegistry
CopyFiles=DLL.Copy,INDDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI518.Services]
AddService  = iport,, IND_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI518.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
;
;   INDPORT PCI514
;
[PCI514]
AddReg      = P514_AddRegistry
CopyFiles=DLL.Copy,INDDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI514.Services]
AddService  = iport,, IND_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI514.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
[PCI64N]
AddReg      = P64N_AddRegistry
CopyFiles = DLL.Copy,NTDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI64N.Services]
AddService  = nport,, NT_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI64N.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
[PCI64M]
AddReg      = P64M_AddRegistry
CopyFiles = DLL.Copy,MEMDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf

[PCI64M.Services]
AddService  = mport,, MEM_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install

[PCI64M.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
;   INDPORT PCI220
[PCI220]
AddReg      = P220_AddRegistry
CopyFiles=DLL.Copy,INDDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI220.Services]
AddService  = iport,, IND_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI220.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
[PCI422]
AddReg      = P422_AddRegistry
CopyFiles=DLL.Copy,INDDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI422.Services]
AddService  = iport,, IND_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI422.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
[PCI232]
AddReg      = P232_AddRegistry
CopyFiles=DLL.Copy,INDDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI232.Services]
AddService  = iport,, IND_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI232.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy
[PCI984]
AddReg      = P984_AddRegistry
CopyFiles=DLL.Copy,INDDriver.copy
CopyINF=r2kpci1.inf,r2kpci2.inf
[PCI984.Services]
AddService  = iport,, IND_Port_Service_Install, RAYON_EventLog_Install
AddService  = pciport, 0x00000002, PPORT_Service_Install, RAYON_EventLog_Install
[PCI984.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles=DLL.Copy

;
; Logical Configuration Section
;
;----------------------------------------------------------------------------
; Service installation
;----------------------------------------------------------------------------
[PPORT_Service_Install]
DisplayName    = %PPortServiceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
;;StartType    = %SERVICE_AUTO_START%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\pci58x.sys
LoadOrderGroup = Extended base

[IPORT_Service_Install]
DisplayName    = %PPortServiceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
;;StartType    = %SERVICE_AUTO_START%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\pci58x.sys
LoadOrderGroup = Extended base

[PCI_Port_Service_Install]
DisplayName    = %PortServiceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
;;StartType      = %SERVICE_AUTO_START%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\pport.sys
LoadOrderGroup = Extended base

[IND_Port_Service_Install]
DisplayName    = %PortServiceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
;;StartType      = %SERVICE_AUTO_START%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\iport.sys
LoadOrderGroup = Extended base

[NT_Port_Service_Install]
DisplayName    = %PortServiceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
;;StartType      = %SERVICE_AUTO_START%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\nport.sys
LoadOrderGroup = Extended base

[MEM_Port_Service_Install]
DisplayName    = %PortServiceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
;;StartType      = %SERVICE_AUTO_START%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\mport.sys
LoadOrderGroup = Extended base

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"rport.dll,RSICoInstaller"

;----------------------------------------------------------------------------
; Mx Event Log installation
;----------------------------------------------------------------------------
[RAYON_EventLog_Install]
AddReg=RAYON_EventLog_AddReg

[RAYON_EventLog_AddReg]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\pport.sys"
HKR,,TypesSupported,  %REG_DWORD%,7

;----------------------------------------------------------------------------
; Registry installation
;----------------------------------------------------------------------------
[P588_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x15880000
[P584_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x15840000
[P124_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x11240000
[P518_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x15180000
[P514_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x15140000
[P64N_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x88980000
[P64M_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x88880000
[P220_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x12200000
[P422_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x14220000
[P232_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x12320000
[P984_AddRegistry]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"rport.dll,EnumPropPages"
HKR,,RAYONDEVICE,%REG_DWORD%,0x00140000
;
; File-List Section
;
[INF.Copy]
r2kpci1.inf
r2kpci2.inf

[PCIDriver.Copy]
pport.sys
pci58x.sys

[INDDriver.Copy]
iport.sys
pci58x.sys

[NTDriver.Copy]
nport.sys
pci58x.sys

[MEMDriver.Copy]
mport.sys
pci58x.sys

[DLL.Copy]
rport.dll

;
; DestinationDirs Section
;
[DestinationDirs]
DLL.Copy=11             ; System diretory
PCIDriver.Copy=12       ; System32/Driver
INDDriver.Copy=12       ; System32/Driver
NTDriver.Copy=12        ; System32/Driver
MEMDriver.Copy=12       ; System32/Driver
INF.Copy=17             ; INF directory
DefaultDestDir=11       ; System diretory

;
; Strings section
;
[Strings]
Mfg="RAYON Technologies Inc. v1.0.4"
MfgDesc="RAYON PCIPORT/INDPORT Multiport Driver v1.0.4"
DiskName="RAYON PCIPORT Card Installation Disc"
PPortServiceDesc = "RAYON PCIPORT P588/P584 Family Driver"
IPortServiceDesc = "RAYON INDPORT P514/P518/P220/P984 Family Driver"
PortServiceDesc = "RAYON Port Driver"
PCI588.DevDesc="RAYON PCIPORT P588 Adapter"
PCI584.DevDesc="RAYON PCIPORT P584 Adapter"
PCI518.DevDesc="RAYON INDPORT P518 Adapter"
PCI124.DevDesc="PCI124 Serial Adapter"
PCI514.DevDesc="RAYON INDPORT P514 Adapter"
PCI220.DevDesc="RAYON INDPORT P220 Adapter"
PCI422.DevDesc="RAYON INDPORT P220/P422is Adapter"
PCI232.DevDesc="RAYON INDPORT P232 Adapter"
PCI984.DevDesc="RAYON INDPORT P984/P985/P924 Adapter"
PCI64N.DevDesc= "RAYON NTCARD(IO) Adapter"
PCI64M.DevDesc= "RAYON P640N(Mem) Adapter"


REG_SZ                 = 0x00000000
REG_DWORD              = 0x00010001
REG_EXPAND_SZ          = 0x00020000

SERVICE_KERNEL_DRIVER       = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER  = 0x00000002
SERVICE_ADAPTER             = 0x00000004
SERVICE_RECOGNIZER_DRIVER   = 0x00000008
SERVICE_WIN32_OWN_PROCESS   = 0x00000010
SERVICE_WIN32_SHARE_PROCESS = 0x00000020
SERVICE_INTERACTIVE_PROCESS = 0x00000100

SERVICE_BOOT_START     = 0x00000000
SERVICE_SYSTEM_START   = 0x00000001
SERVICE_AUTO_START     = 0x00000002
SERVICE_DEMAND_START   = 0x00000003
SERVICE_DISABLED       = 0x00000004

SERVICE_ERROR_IGNORE   = 0x00000000
SERVICE_ERROR_NORMAL   = 0x00000001
SERVICE_ERROR_SEVERE   = 0x00000002
SERVICE_ERROR_CRITICAL = 0x00000003

SYSTEM32               = 11
SYSTEM32\DRIVERS       = 12

