;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;  Copyright (c) AVerMedia TECHNOLOGIES, Inc.
;;
;;  Installation file for AVerMedia USB Polaris Series Custom IR Driver
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Version]
Signature="$CHICAGO$"
Class=Media
ClassGuid={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%AVerMedia%
CatalogFile=AVKsCIR.cat
DriverVer=12/18/2013,10.2.0.103

[SourceDisksNames]
1=%DriverDescription%,,,

[SourceDisksFiles]
AVKsCIR.sys=1

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%AVerMedia%=DeviceList,NTx86, NTx86.6

[DeviceList.NTx86]
%DeviceDescriptionH831%=AVKsCIRx86,USB\VID_07CA&PID_2831&MI_00

[DeviceList.NTx86.6]
%DeviceDescriptionH831%=AVKsCIRx86_Vista,USB\VID_07CA&PID_2831&MI_00

[AVKsCIRx86.NT]
Include=ks.inf, ksfilter.inf
Needs=KS.Registration
CopyFiles=AVKsCIR.CopyFiles
AddReg=AVKsCIR.AddReg, MCEIRXP.AddReg

[AVKsCIRx86_Vista.NT]
Include=ks.inf, ksfilter.inf
Needs=KS.Registration
CopyFiles=AVKsCIR.CopyFiles
AddReg=AVKsCIR.AddReg, MCEIRVista.AddReg

[AVKsCIRx86_Vista.NT.CoInstallers]
CopyFiles    = MCEIR.CopyCoInst
AddReg       = MCEIR.CoInstaller_AddReg

[MCEIR.CopyCoInst]

[MCEIR.CoInstaller_AddReg]
; Add for MCE IR
HKR,,CoInstallers32,0x00010008,"CIRCoInst.dll,IRCoInstaller"

[DestinationDirs]
AVKsCIR.CopyFiles=12

[AVKsCIR.CopyFiles]
AVKsCIR.sys

[AVKsCIR.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,AVKsCIR.sys

;RC6 mode 0xc: RC6 mode 6A is selected.
HKR,"DriverData","IR_PROTOCOL_MODE",0x00010001,0x0c,0x00,0x00,0x00
HKR,"DriverData","Enable_Remote_WW",0x00010001,0x00,0x00,0x00,0x00
HKR,"DriverData","IR_REPEAT_CNT",0x00010001,0x02,0x00,0x00,0x00

[MCEIRVista.AddReg]
HKR,"DriverData","DEFAULT_SELECTED_AP",0x00010001,0x02,0x00,0x00,0x00

[MCEIRXP.AddReg]
HKR,"DriverData","DEFAULT_SELECTED_AP",0x00010001,0x01,0x00,0x00,0x00

;
; Interfaces installation
;

[AVKsCIRx86.NT.Interfaces]
AddInterface = {CC7BFB46-F175-11d1-A392-00E0291F3959}, {A42DB8B7-A2EB-403c-BCAB-914F80A56EEB}, AVer_DeviceControlInterface,

[AVKsCIRx86_Vista.NT.Interfaces]
AddInterface = {CC7BFB46-F175-11d1-A392-00E0291F3959}, {A42DB8B7-A2EB-403c-BCAB-914F80A56EEB}, AVer_DeviceControlInterface,

[AVer_DeviceControlInterface]
AddReg=AVer_DeviceControlInterface.AddReg

[AVer_DeviceControlInterface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%DeviceControlFriendlyName%


[AVKsCIRx86.NT.Services]
AddService=AVKsCIR,0x00000002,AVKsCIR.ServiceInstall

[AVKsCIRx86_Vista.NT.Services]
AddService=AVKsCIR,0x00000002,AVKsCIR.ServiceInstall


[AVKsCIR.ServiceInstall]
DisplayName=%ServiceDescription%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\AVKsCIR.sys
LoadOrderGroup=ExtendedBase

[Strings]
AVerMedia="AVerMedia TECHNOLOGIES, Inc."

DriverDescription="AVerMedia USB Polaris Series Custom IR Driver"

DeviceDescriptionH831="AVerMedia H831 USB Custom IR Receiver"


;
; Friendly Names
;
DeviceControlFriendlyName              = "AVerMedia USB Polaris Series Custom IR"

Proxy.CLSID                  = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

ServiceDescription="AVerMedia USB Polaris Series KS IR Service"

SERVICE_KERNEL_DRIVER=1
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
