; *****************************************************************************************************
;   Copyright (c) 2018, HP Development Company, L.P. All rights reserved.
;   This software contains confidential and proprietary information of HP.
;   The user of this software agrees not to disclose, disseminate or copy
;   such Confidential Information and shall use the software only in accordance
;   with the terms of the license agreement the user entered into with HP.
; *****************************************************************************************************
;
; ViGEmBus.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%ManufacturerName%
CatalogFile.ntamd64=ViGEmBus64.cat
CatalogFile.ntx86=ViGEmBus86.cat
DriverVer= 10/10/2018,1.14.3.4

[DestinationDirs]
EXE.CopyList.ntamd64 = 13, x64
EXE.CopyList.ntx86 = 13, x86

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

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

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

[SourceDisksFiles]
ViGEmBus.sys = 1
LICENSE = 1
attribution.txt = 1


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

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

[Standard.NTamd64]
%ViGEmBus.DeviceDesc%=ViGEmBus_Device, SWC\HPIC0004_ViGEmBus

[Standard.NTx86]
%ViGEmBus.DeviceDesc%=ViGEmBus_Device, SWC\HPIC0004_ViGEmBus

[ViGEmBus_Device.NTamd64]
CopyFiles=EXE.CopyList.ntamd64

[ViGEmBus_Device.ntx86]
CopyFiles=EXE.CopyList.ntx86

[EXE.CopyList.ntamd64]
ViGEmBus.sys, , %COPYFLG_FORCE_FILE_IN_USE%
LICENSE, , %COPYFLG_FORCE_FILE_IN_USE%

[EXE.CopyList.ntx86]
ViGEmBus.sys, , %COPYFLG_FORCE_FILE_IN_USE%
LICENSE, , %COPYFLG_FORCE_FILE_IN_USE%

;-------------- Service installation
[ViGEmBus_Device.ntamd64.Services]
AddService = ViGEmBus,%SPSVCINST_ASSOCSERVICE%, ViGEmBus_Service_Inst64

[ViGEmBus_Device.ntx86.Services]
AddService = ViGEmBus,%SPSVCINST_ASSOCSERVICE%, ViGEmBus_Service_Inst86

; -------------- ViGEmBus driver install sections
[ViGEmBus_Service_Inst64]
DisplayName    = %ViGEmBus.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\x64\ViGEmBus.sys

[ViGEmBus_Service_Inst86]
DisplayName    = %ViGEmBus.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\x86\ViGEmBus.sys

;
;--- ViGEmBus_Device Coinstaller installation ------
;

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
COPYFLG_FORCE_FILE_IN_USE = 0x00000008
ManufacturerName="HP Inc"
DiskName = "ViGEmBus Installation Disk"
ViGEmBus.DeviceDesc = "Virtual Gamepad Emulation Bus"
ViGEmBus.SVCDESC = "Virtual Gamepad Emulation Service"
