From bd074d93fd7d828d9905d0a91cc6977fb0f60344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Fri, 8 May 2020 14:49:12 +0200 Subject: [PATCH] Added another INF to simplify test signing and installation for single architecture --- sys/ViGEmBus.vcxproj | 1 + sys/ViGEmBus.vcxproj.filters | 3 ++ sys/ViGEmBus_SingleArch.inf | 100 +++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 sys/ViGEmBus_SingleArch.inf diff --git a/sys/ViGEmBus.vcxproj b/sys/ViGEmBus.vcxproj index 130a349..a8b76d3 100644 --- a/sys/ViGEmBus.vcxproj +++ b/sys/ViGEmBus.vcxproj @@ -175,6 +175,7 @@ + diff --git a/sys/ViGEmBus.vcxproj.filters b/sys/ViGEmBus.vcxproj.filters index 5084fb0..66f00db 100644 --- a/sys/ViGEmBus.vcxproj.filters +++ b/sys/ViGEmBus.vcxproj.filters @@ -25,6 +25,9 @@ Driver Files + + Driver Files + diff --git a/sys/ViGEmBus_SingleArch.inf b/sys/ViGEmBus_SingleArch.inf new file mode 100644 index 0000000..ab77a08 --- /dev/null +++ b/sys/ViGEmBus_SingleArch.inf @@ -0,0 +1,100 @@ +; Virtual Gamepad Emulation Framework - Windows kernel-mode bus driver +; +; MIT License +; +; Copyright (c) 2016-2019 Nefarius Software Solutions e.U. and Contributors +; +; Permission is hereby granted, free of charge, to any person obtaining a copy +; of this software and associated documentation files (the "Software"), to deal +; in the Software without restriction, including without limitation the rights +; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +; copies of the Software, and to permit persons to whom the Software is +; furnished to do so, subject to the following conditions: +; +; The above copyright notice and this permission notice shall be included in all +; copies or substantial portions of the Software. +; +; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +; SOFTWARE. + + +[Version] +Signature="$WINDOWS NT$" +Class=System +ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318} +Provider=%ManufacturerName% +CatalogFile=ViGEmBus.cat +DriverVer= ; + +[DestinationDirs] +DefaultDestDir = 12 +ViGEmBus_Device_CoInstaller_CopyFiles = 11 + +[SourceDisksNames] +1 = %DiskName%,,, + +[SourceDisksFiles] +ViGEmBus.sys = 1,, +WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll = 1 + +;***************************************** +; Install Section +;***************************************** + +[Manufacturer] +%ManufacturerName%=Standard,NTamd64,NTx86 + +[Standard.NTamd64] +%ViGEmBus.DeviceDesc%=ViGEmBus_Device, Nefarius\ViGEmBus\Gen1 + +[Standard.NTx86] +%ViGEmBus.DeviceDesc%=ViGEmBus_Device, Nefarius\ViGEmBus\Gen1 + +[ViGEmBus_Device.NT] +CopyFiles=Drivers_Dir + +[Drivers_Dir] +ViGEmBus.sys + +;-------------- Service installation +[ViGEmBus_Device.NT.Services] +AddService = ViGEmBus,%SPSVCINST_ASSOCSERVICE%, ViGEmBus_Service_Inst + +; -------------- ViGEmBus driver install sections +[ViGEmBus_Service_Inst] +DisplayName = %ViGEmBus.SVCDESC% +ServiceType = 1 ; SERVICE_KERNEL_DRIVER +StartType = 3 ; SERVICE_DEMAND_START +ErrorControl = 1 ; SERVICE_ERROR_NORMAL +ServiceBinary = %12%\ViGEmBus.sys + +; +;--- ViGEmBus_Device Coinstaller installation ------ +; + +[ViGEmBus_Device.NT.CoInstallers] +AddReg=ViGEmBus_Device_CoInstaller_AddReg +CopyFiles=ViGEmBus_Device_CoInstaller_CopyFiles + +[ViGEmBus_Device_CoInstaller_AddReg] +HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller" + +[ViGEmBus_Device_CoInstaller_CopyFiles] +WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll + +[ViGEmBus_Device.NT.Wdf] +KmdfService = ViGEmBus, ViGEmBus_wdfsect +[ViGEmBus_wdfsect] +KmdfLibraryVersion = $KMDFVERSION$ + +[Strings] +SPSVCINST_ASSOCSERVICE= 0x00000002 +ManufacturerName="Nefarius Software Solutions e.U." +DiskName = "ViGEmBus Installation Disk" +ViGEmBus.DeviceDesc = "Virtual Gamepad Emulation Bus" +ViGEmBus.SVCDESC = "Virtual Gamepad Emulation Service"