; Copyright (c) 2007, Abilis Systems
; Driver Install Script for Windows XP/Vista
[Version]
signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%abst%
DriverVer=11/03/2008,1.2.4.5777
CatalogFile=AbilisBdaTuner.cat

[Strings]
abst	= "Abilis Systems"
disk1	= "Abilis Systems Installation Disk"
drv0	= "AbilisBdaTuner.sys"
firm1	= "as102data1.hex"
firm2	= "as102data2.hex"
firm3	= "as102data3.hex"
firm4	= "as102data4.hex"
firm5	= "as102data5.hex"
firm6	= "as102data6.hex"

AbilisTuner.FriendlyName = "Abilis Systems Single DVB-T Tuner"
AbilisTuner1.DeviceDesc  = "Abilis Systems Single DVB-T Receiver"
AbilisTuner2.DeviceDesc  = "Abilis Systems Single DVB-T Receiver"
AbilisTuner3.DeviceDesc  = "Abilis Systems Single DVB-T Receiver"
AbilisTuner.InfraredName = "Abilis 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

[Manufacturer]
%abst%=Abilis,NTx86

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

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

[SourceDisksFiles.x86]
AbilisBdaTuner.sys = 1

[Abilis.CopyDrivers]
AbilisBdaTuner.sys

[Abilis.NTx86]
%AbilisTuner1.DeviceDesc%=Abilis.Device1,USB\VID_1BA6&PID_0001
%AbilisTuner2.DeviceDesc%=Abilis.Device2,USB\VID_1BA6&PID_0002&MI_00
%AbilisTuner3.DeviceDesc%=Abilis.Device3,USB\VID_1BA6&PID_0003

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

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

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

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

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

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

[Abilis.Device1.AddReg_HW]
HKR,,"FirmwareCount",,"2"
HKR,,"Firmware0",,%firm1%
HKR,,"Firmware1",,%firm2%
HKR,,SignalPropertyUpdateRate,,1000
HKR,,InfraredRemoteProtocol,,1
HKR,,InfraredPollingRate,,300
HKR,,ExternalLNA,,0
HKR,,RFSwitch,,0
HKR,,RFSwitchInput,,0
HKR,,RFBandInput,,0

[Abilis.Device2.AddReg_HW]
HKR,,"FirmwareCount",,"2"
HKR,,"Firmware0",,%firm3%
HKR,,"Firmware1",,%firm2%

[Abilis.Device3.AddReg_HW]
HKR,,"FirmwareCount",,"2"
HKR,,"Firmware0",,%firm4%
HKR,,"Firmware1",,%firm2%

[Abilis.Device1.NT.Services]
Addservice = AbilisT, 0x00000002, Abilis.AddService

[Abilis.Device2.NT.Services]
Addservice = AbilisT, 0x00000002, Abilis.AddService

[Abilis.Device3.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.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.Device2.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.Device3.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%
