;////////////////////////////////////////////////////////////////////////////////
;//
;//                           (C) PCTV Systems 2009
;//      All rights are reserved.  Reproduction in whole or in part is prohibited
;//      without the written consent of the copyright owner.
;//
;//      PCTV Systems reserves the right to make changes without notice at any time.
;//      PCTV Systems makes no warranty, expressed, implied or statutory, including
;//      but not limited to any implied warranty of merchantibility of fitness
;//      for any particular purpose, or that the use will not infringe any
;//      third party patent, copyright or trademark.
;//      PCTV Systems must not be liable for any loss or damage arising from its use.
;//
;////////////////////////////////////////////////////////////////////////////////

;----------------------------------------------------------------------------------------------------
;
; PCTVabi.inf   -- This file contains installation information for
;                   
;                    PCTV 74e
;
; Copyright (c) 2009 PCTV Systems
;----------------------------------------------------------------------------------------------------

[Version]
signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%abst%
DriverVer=03/10/2010,2.0.5.9014
CatalogFile=PCTVABI.cat
DriverPackageType=PlugAndPlay
DriverPackageDisplayName="PCTV 74e"


[Strings]
abst	= "PCTV Systems"
disk1	= "PCTV Systems Installation Disk"
drv0	= "AbilisBdaTuner.sys"
firm1	= "as102data1.hex"
firm2	= "as102data2.hex"
RunOnce = "Software\Microsoft\Windows\CurrentVersion\RunOnce"

AbilisTuner.FriendlyName = "Abilis Systems Single DVB-T Tuner"
AbilisTuner1.DeviceDesc  = "Abilis Systems Single DVB-T Receiver"
AbilisTuner2.DeviceDesc  = "PCTV Systems 74e DVB-T Receiver"
AbilisTuner.InfraredName = "PCTV Systems IrDA Controler"

;KSNAME_Filter = "{9B365890-165F-11D0-A195-0020AFD156E4}"
KsProxy.CLSID = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSSTRING_AbilisBdaTunerFilter = "{8ACAFBA4-A671-43e5-8F94-AC2BC7185C39}"

GUID.KSCATEGORY_BDA_NETWORK_PROVIDER = "{71985F4B-1CA1-11d3-9CC8-00C04F7971E0}"
GUID.KSCATEGORY_BDA_NETWORK_TUNER    = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
GUID.KSCATEGORY_BDA_RECEIVER         = "{fd0a5af4-b41d-11d2-9c95-00c04f7971E0}"
GUID.KSCATEGORY_BDA_TRANSPORT        = "{78216A81-cfa8-493e-9711-36a61c08bd9d}"
GUID.ABILIS_CUSTOM_PROP              = "{D63982C6-EF48-45d0-902E-951791816FE0}"

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
; DefaultDestDir=10,system32\drivers
Abilis.CopyDrivers = 12
Abilis.CopyPlugin = 16425

[Manufacturer]
%abst%=PCTVSYSTEMS,NTx86,NTamd64

;[PreCopySection]
;HKR,,NoSetupUI,,1

[SourceDisksNames.x86]
1 = %disk1%,,,\i386

[SourceDisksFiles.x86]
AbilisBdaTuner.sys = 1
AbilisPlugin.ax = 1

[SourceDisksNames.amd64]
1 = %disk1%,,,\amd64

[SourceDisksFiles.amd64]
AbilisBdaTuner.sys = 1
AbilisPlugin.ax = 1

[AbilisPlugin.AddReg]
HKLM, %RunOnce%, "AbilisPlugin.ax",,"%16425%\rundll32.exe  %16425%\AbilisPlugin.ax,DllRegisterServer"
HKLM,SYSTEM\CurrentControlSet\Control\MediaSets\{D63982C6-EF48-45D0-902E-951791816FE0}
HKLM,SYSTEM\CurrentControlSet\Control\MediaSets\{D63982C6-EF48-45D0-902E-951791816FE0}\PropertyPages
HKLM,SYSTEM\CurrentControlSet\Control\MediaSets\{D63982C6-EF48-45D0-902E-951791816FE0}\PropertyPages\{AF938B00-811A-4E4A-AFBC-BE8B607E9C19}
HKLM,SYSTEM\CurrentControlSet\Control\MediaSets\{D63982C6-EF48-45D0-902E-951791816FE0}\PropertyPages\{AF938B00-811A-4E4A-AFBC-BE8B607E9C19},,,"Abilis Systems IrDA Controller"

HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{D63982C6-EF48-45D0-902E-951791816FE0}
HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{D63982C6-EF48-45D0-902E-951791816FE0},,,"Abilis Systems Property Pages"
HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{D63982C6-EF48-45D0-902E-951791816FE0},IID,0x00000001,c6,82,39,d6,48,ef,d0,45,90,2e,95,17,91,81,6f,e0
[Abilis.CopyDrivers]
AbilisBdaTuner.sys

[Abilis.CopyPlugin]
AbilisPlugin.ax

;[Abilis.RegisterDLLs]
;16425,,AbilisPlugin.ax,1

[PCTVSYSTEMS.NTx86]
;%AbilisTuner1.DeviceDesc%=Abilis.Device1,USB\VID_1BA6&PID_0001
%AbilisTuner2.DeviceDesc%=Abilis.Device1,USB\VID_2013&PID_0246 			; PCTV 74e

[PCTVSYSTEMS.NTamd64]
;%AbilisTuner1.DeviceDesc%=Abilis.Device1,USB\VID_1BA6&PID_0001
%AbilisTuner2.DeviceDesc%=Abilis.Device1,USB\VID_2013&PID_0246			; PCTV 74e

[Abilis.Device1.NT]
Include      = ks.inf, kscaptur.inf, bda.inf
Needs        = KS.Registration,KSCAPTUR.Registration.NT,BDA.Installation.NT
AddReg       = Abilis.AddReg, AbilisPlugin.AddReg
CopyFiles    = Abilis.CopyDrivers, Abilis.CopyPlugin


[Abilis.Device1.NT.HW]
AddReg = Abilis.Device1.AddReg_HW

[Abilis.Device1.AddReg_HW]
HKR,,"FirmwareCount",,"2"
HKR,,"Firmware0",,%firm1%
HKR,,"Firmware1",,%firm2%
HKR,,SignalPropertyUpdateRate,,1000
HKR,,InfraredRemoteProtocol,,1
HKR,,InfraredPollingRate,,0
HKR,,ExternalLNA,,1
HKR,,RFSwitch,,1
HKR,,RFSwitchInput,,0
HKR,,RFBandInput,,0
[Abilis.Device1.NT.Services]
Addservice = AbilisT, 0x00000002, Abilis.AddService

[Abilis.AddService]
DisplayName    = %AbilisTuner.FriendlyName%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\%drv0%
LoadOrderGroup = Base

[Abilis.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%drv0%
HKR,,PageOutWhenUnopened,3,01
HKLM,System\CurrentControlSet\Control\MediaCategories\{040BB836-4FA9-45e7-A0A1-5CD641586272}
HKLM,System\CurrentControlSet\Control\MediaCategories\{040BB836-4FA9-45e7-A0A1-5CD641586272},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{040BB836-4FA9-45e7-A0A1-5CD641586272},Name,,"AS Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{83DC3624-1F55-43d2-B81D-DFCA6FD5CA1A}
HKLM,System\CurrentControlSet\Control\MediaCategories\{83DC3624-1F55-43d2-B81D-DFCA6FD5CA1A},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{83DC3624-1F55-43d2-B81D-DFCA6FD5CA1A},Name,,"AS Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{6B8202C2-0223-4c64-BD78-A9BC69DD2B59}
HKLM,System\CurrentControlSet\Control\MediaCategories\{6B8202C2-0223-4c64-BD78-A9BC69DD2B59},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{6B8202C2-0223-4c64-BD78-A9BC69DD2B59},Name,,"AS Antenna In Pin"

[Abilis.Device1.Interfaces]
AddInterface=%GUID.KSCATEGORY_BDA_NETWORK_TUNER%,%KSSTRING_AbilisBdaTunerFilter%,Abilis.Interfaces,
AddInterface=%GUID.KSCATEGORY_BDA_RECEIVER%,%KSSTRING_AbilisBdaTunerFilter%,Abilis.Interfaces,
;AddInterface=%GUID.KSCATEGORY_BDA_NETWORK_PROVIDER%,%KSSTRING_AbilisBdaTunerFilter%,Abilis.Interfaces

[Abilis.Device1.NT.Interfaces]
AddInterface=%GUID.KSCATEGORY_BDA_NETWORK_TUNER%,%KSSTRING_AbilisBdaTunerFilter%,Abilis.Interfaces,
AddInterface=%GUID.KSCATEGORY_BDA_RECEIVER%,%KSSTRING_AbilisBdaTunerFilter%,Abilis.Interfaces,
;AddInterface=%GUID.KSCATEGORY_BDA_NETWORK_PROVIDER%,%KSSTRING_AbilisBdaTunerFilter%,Abilis.Interfaces


[Abilis.Interfaces]
AddReg=Abilis.Interface.AddReg

[Abilis.Interface.AddReg]
HKR,,CLSID,,%KsProxy.CLSID%
HKR,,FriendlyName,,%AbilisTuner.FriendlyName%
