; Copyright: (c) 2018 Razer Inc. All rights reserved
;
; RzCommon.inf
;

[Version]
Signature   = "$WINDOWS NT$"
Class       = Razer Device
ClassGuid   = {1750F915-5639-497C-966C-3A65ACECFCB6}
Provider    = %ManufacturerName%
CatalogFile = rzcommon.cat
DriverVer=01/16/2019,6.2.9200.16384

[DestinationDirs]
DefaultDestDir = 12
RzCommon_Device_CoInstaller_CopyFiles = 11

; ================= Class section =====================

[ClassInstall32]
Addreg = RazerDeviceClassReg

[RazerDeviceClassReg]
HKR,,,0,%ClassName%
;HKR,,Icon,,-5

[SourceDisksNames]
1 = %DiskName%,,,""

[SourceDisksFiles]
RzCommon.sys  = 1,,
WdfCoInstaller01009.dll = 1 ; make sure the number matches with SourceDisksNames

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%ManufacturerName% = Standard,NTamd64,NTamd64.6.2

[Standard.NTamd64]
%RzCommon.DeviceDesc% = RzCommon_Device.6.1,RAZER\DeviceContol

[Standard.NTamd64.6.2]
%RzCommon.DeviceDesc% = RzCommon_Device,RAZER\DeviceContol

[RzCommon_Device.6.1.NT]
CopyFiles = Drivers_Dir

[RzCommon_Device.NT]
CopyFiles = Drivers_Dir

[Drivers_Dir]
RzCommon.sys

;-------------- Service installation
[RzCommon_Device.6.1.NT.Services]
AddService = RzCommon,%SPSVCINST_ASSOCSERVICE%, RzCommon_Service_Inst

[RzCommon_Device.NT.Services]
AddService = RzCommon,%SPSVCINST_ASSOCSERVICE%, RzCommon_Service_Inst

; -------------- RzCommon driver install sections
[RzCommon_Service_Inst]
DisplayName    = %RzCommon.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\RzCommon.sys

;
;--- RzCommon_Device Coinstaller installation ------
;

[RzCommon_Device.6.1.NT.CoInstallers]
AddReg = RzCommon_Device_CoInstaller_AddReg
CopyFiles = RzCommon_Device_CoInstaller_CopyFiles

[RzCommon_Device_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[RzCommon_Device_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[RzCommon_Device.6.1.NT.Wdf]
KmdfService = RzCommon, RzCommon_wdfsect

[RzCommon_wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
ManufacturerName = "Razer Inc"
ClassName = "Razer Device"
DiskName = "Razer Installation Disk"
RzCommon.DeviceDesc = "Razer Control Device"
RzCommon.SVCDESC = "Razer Control Service"
