[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] 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
- Cleanup user mode service (xencons_monitor) on uninstall

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 <owen.smith@xxxxxxxxx>
---
 src/xencons.inf | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/src/xencons.inf b/src/xencons.inf
index 5f3be79..4b0dbde 100644
--- a/src/xencons.inf
+++ b/src/xencons.inf
@@ -38,10 +38,10 @@ Provider=%Vendor%
 CatalogFile=xencons.cat
 
DriverVer=@INF_DATE@,@MAJOR_VERSION@.@MINOR_VERSION@.@MICRO_VERSION@.@BUILD_NUMBER@
 DriverPackageDisplayName=%DiskDesc%
+PnpLockdown=1
 
 [DestinationDirs]
 DefaultDestDir=12
-CoInst_CopyFiles=11
 Monitor_CopyFiles=11
 Tty_CopyFiles=11
 
@@ -50,14 +50,10 @@ Tty_CopyFiles=11
 
 [SourceDisksFiles]
 xencons.sys=0,,
-xencons_coinst.dll=0,,
 xencons_monitor.exe=0,,
 xencons_monitor.dll=0,,
 xencons_tty.exe=0,,
 
-[CoInst_CopyFiles]
-xencons_coinst_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll,xencons_coinst.dll
-
 [Monitor_CopyFiles]
 
xencons_monitor_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.exe,xencons_monitor.exe
 
xencons_monitor_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll,xencons_monitor.dll
@@ -72,9 +68,9 @@ 
xencons_tty_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.exe,x
 ; DisplayName          Section         DeviceID
 ; -----------          -------         --------
 
-%XenConsName%          =XenCons_Inst,  
XENBUS\VEN_@VENDOR_PREFIX@@VENDOR_DEVICE_ID@&DEV_CONS&REV_09000009
-%XenConsName%          =XenCons_Inst,  
XENBUS\VEN_@VENDOR_PREFIX@0001&DEV_CONS&REV_09000009
-%XenConsName%          =XenCons_Inst,  
XENBUS\VEN_@VENDOR_PREFIX@0002&DEV_CONS&REV_09000009
+%XenConsName%          =XenCons_Inst,  
XENBUS\VEN_@VENDOR_PREFIX@@VENDOR_DEVICE_ID@&DEV_CONS&REV_0900000A
+%XenConsName%          =XenCons_Inst,  
XENBUS\VEN_@VENDOR_PREFIX@0001&DEV_CONS&REV_0900000A
+%XenConsName%          =XenCons_Inst,  
XENBUS\VEN_@VENDOR_PREFIX@0002&DEV_CONS&REV_0900000A
 
 [XenCons_Inst]
 CopyFiles=XenCons_Copyfiles
@@ -123,13 +119,6 @@ AddReg=Monitor_EventLog_AddReg
 
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\xencons_monitor_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll"
 HKR,,TypesSupported,0x00010001,7
 
-[XenCons_Inst.CoInstallers]
-CopyFiles=CoInst_CopyFiles
-AddReg=CoInst_AddReg
-
-[CoInst_AddReg]
-HKR,,CoInstallers32,0x00010000,"xencons_coinst_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll,Entry"
-
 [Strings]
 
 Vendor="@VENDOR_NAME@"
-- 
2.41.0.windows.3




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.