;
; IngenicoEnum.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%ManufacturerName%
CatalogFile=IngenicoEnum.cat
DriverVer=01/09/2017,1.0.0.1

[DestinationDirs]
DefaultDestDir = 12

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

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

[SourceDisksFiles.x86]
IngenicoEnum.sys  = 1
WdfCoInstaller01009.dll=1

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

[SourceDisksFiles.amd64]
IngenicoEnum.sys  = 1
WdfCoInstaller01009.dll=1



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

[Manufacturer]
%ManufacturerName%=Standard,NTx86.5.1,NTamd64

[Standard.NTx86.5.1]
%IngenicoEnum.DeviceDesc%=IngenicoEnum_Device, Root\IngenicoEnum

[Standard.NTamd64]
%IngenicoEnum.DeviceDesc%=IngenicoEnum_Device, Root\IngenicoEnum

[IngenicoEnum_Device.NT]
CopyFiles=Drivers_Dir

[Drivers_Dir]
IngenicoEnum.sys

;-------------- Service installation
[IngenicoEnum_Device.NT.Services]
AddService = IngenicoEnum,%SPSVCINST_ASSOCSERVICE%, IngenicoEnum_Service_Inst

; -------------- IngenicoEnum driver install sections
[IngenicoEnum_Service_Inst]
DisplayName    = %IngenicoEnum.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\IngenicoEnum.sys
LoadOrderGroup = Extended Base

;--------------Uninstall helpers
[DefaultUninstall]
DelFiles = Drivers_Dir,0x00010000 
DelReg = IngenicoEnum.DelReg

[DefaultUninstall.Services]
DelService = IngenicoEnum,0x200    

[IngenicoEnum.DelReg]
HKLM, System\CurrentControlSet\Services\IngenicoEnum,,0x2000


;
;--- IngenicoEnum_Device Coinstaller installation ------
;

[DestinationDirs]
IngenicoEnum_Device_CoInstaller_CopyFiles = 11

[IngenicoEnum_Device.NT.CoInstallers]
AddReg=IngenicoEnum_Device_CoInstaller_AddReg
CopyFiles=IngenicoEnum_Device_CoInstaller_CopyFiles

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

[IngenicoEnum_Device_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[IngenicoEnum_Device.NT.Wdf]
KmdfService =  IngenicoEnum, IngenicoEnum_wdfsect
[IngenicoEnum_wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="Ingenico"
DiskName = "Ingenico Driver setup disc"
IngenicoEnum.DeviceDesc = "IngenicoEnum"
IngenicoEnum.SVCDESC = "IngenicoEnum Service"
