;***************************************
; RAYON APORT IOP W2K/XP V1.00  
; A2KPORT1.INF
; Copyright (c) 2010 RAYON Technologies
; Version section
; ClassGUID: Creat New one
;***************************************
[Version]
Signature="$Windows NT$"
Provider=%RayonTech%
DriverVer=10/30/2012,5.0.1

Class=MultiPortSerial
ClassGuid={50906CB8-BA12-11D1-BF5D-0000F805F530}
CatalogFile	= A2KPORT1.cat

;******************************************************************************
;
; Class section
;  For install New class
;******************************************************************************
[ClassInstall32]
;AddReg = APORT_ClassReg     

[APORT_ClassReg]
;;HKR,,,0,%ClassName%
;HKR,,Icon,,-23

;*****************************
; Manufacturer Section
;*****************************
[Manufacturer]
%RayonTech%=RAYON

;*****************************
; Models Section
;*****************************
[RAYON]
%APORTIOP.DevDesc%=APORTIOP,RAYON\APORTIOP

[SourceDisksNames]
1=%DiskName%,,

[SourceDisksFiles]
Aportb.sys=1
Aportp.sys=1
Aportrui.dll=1

;************************
; Install Section
;************************
[APORTIOP]
AddReg=APORTIOP_AddReg
CopyFiles=DLL.Copy,Driver.copy
CopyINF=A2kport1.inf,A2kport2.inf

;***************************
; Registry installation
; MaxPort 16 error
; Give 8 try again
;***************************
[APORTIOP_AddReg]
;root, subkey,           valuename,        flags,        value
HKR,,EnumPropPages32,,"aportrui.dll,EnumGPORT"
HKR,,RAYONDEVICE,%REG_DWORD%,0x20060000

;***********************
; File Copy 
;***********************
[INF.Copy]
A2KPORT1.inf
A2KPORT2.inf

[Driver.Copy]
APORTB.sys
APORTP.sys

[DLL.Copy]
APORTrui.dll

;*****************************************************************
; DDInstall Service Section
; AddService=ServiceName,[flag],service-install,eventlog-install
;*****************************************************************
[APORTIOP.Services]
AddService = APORTIOP, 0x00000002, ADAPTER_Service_Install, RAYON_EventLog_Install
AddService = APORTPORT,,Port_Service_Install,RAYON_EventLog_Install

[APORTIOP.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=DLL.Copy

;********************************
; Logical Configuration Section
; Service installation
;********************************
[ADAPTER_Service_Install]
DisplayName    = %ADAPTERServiceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
;StartType      = %SERVICE_AUTO_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\APORTB.sys
LoadOrderGroup = Extended base

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


[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"APORTrui.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\APORTP.sys"
HKR,,TypesSupported,%REG_DWORD%,7

;**************************
; DestinationDirs Section
;**************************
[DestinationDirs]
DLL.Copy=11             ; System diretory
Driver.Copy=12          ; System32\Drivers
INF.Copy=17             ; INF directory
DefaultDestDir=11       ; System diretory

;***********************
; Strings section
;***********************
[Strings]
RayonTech="RAYON Technologies Inc."
MfgDesc="RAYON APORT-IOP Driver V1.0.7"
DiskName="RAYON APORT Box Installation Disc"
ADAPTERServiceDesc = "RAYON APORT Driver"
PortServiceDesc = "RAYON APORT Serial Driver"
APORTIOP.DevDesc= "RAYON APORT IOP Driver"
;CLASSNAME= "APORT IOP"

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

