From d68b466ed9be5aa1ecc947cb2e4eebc8243f1d74 Mon Sep 17 00:00:00 2001 From: Owen Smith Date: Mon, 2 Oct 2023 13:53:07 +0100 Subject: [PATCH] Remove CoInstaller from INF Windows 11 22H2 WHQL requires INF files pass "InfVerif /k", which highlights several issues - PnpLockdown=1 needs to be specified - CoInstallers are no longer allowed The CoInstaller has several functions that will need alternative solutions: - The AllowUpdate mechanism is no longer possible - The safety checks that ensure interface versionings remain compatible Interface safety checks need to be handled by changes to child device bindings, and assuming upgrade via emulated devices is safe. Signed-off-by: Owen Smith --- src/xenhid.inf | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/xenhid.inf b/src/xenhid.inf index 94b0bec..90efc9a 100644 --- a/src/xenhid.inf +++ b/src/xenhid.inf @@ -38,20 +38,16 @@ Provider=%Vendor% CatalogFile=xenhid.cat DriverVer=@INF_DATE@,@MAJOR_VERSION@.@MINOR_VERSION@.@MICRO_VERSION@.@BUILD_NUMBER@ DriverPackageDisplayName=%DiskDesc% +PnpLockdown=1 [DestinationDirs] DefaultDestDir=12 -CoInst_CopyFiles=11 [SourceDisksNames] 0=%DiskDesc% [SourceDisksFiles] xenhid.sys=0,, -xenhid_coinst.dll=0,, - -[CoInst_CopyFiles] -xenhid_coinst_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll,xenhid_coinst.dll [Manufacturer] %Vendor%=Inst,NT@INF_ARCH@ @@ -85,13 +81,6 @@ AddReg = XenHid_Parameters HKR,"Parameters",,0x00000010 HKR,"Parameters","RequestKey",0x00000000,%RequestKey% -[XenHid_Inst.CoInstallers] -CopyFiles=CoInst_CopyFiles -AddReg=CoInst_AddReg - -[CoInst_AddReg] -HKR,,CoInstallers32,0x00010000,"xenhid_coinst_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll,Entry" - [Strings] Vendor="@VENDOR_NAME@"