Hi Guys,
I have NDIS driver which works fine on most system. I am using INetCfgClassSetup install() routine for installation after SetupCopyOEMInf.
One a system its failing during install after successful SetupCopyOEMInf returning error code 0x80070241 (in setupapi.dev.log)
I see service getting created and then drvinst.exe uninstalling the installed part. I don't DriverEntry routine called here.
Error code: (HRESULT) 0x80070241 (2147942977) - Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.
The installer is working on most system, not sure why its returning signature verification failure error here.
Looking for some pointer here.
Many Thanks,
>>> [Install network driver - NetworkMonitor_NMonitor]
>>> Section start 2025/06/19 12:53:52.859
cmd: "C:\Program Files\NetworkMonitor\NMonitorService.exe"
dvi: Installing new driver
dvi: {Create Device} 12:53:52.906
dvi: {Create Device - NetworkMonitor_NMonitor}
dvi: Class GUID - {4d36e974-e325-11ce-bfc1-08002be10318}
dvi: Description - <none>
dvi: Flags - 0x00000001
dvi: Created device 'ROOT\NetworkMonitor_NMonitor\0000'
dvi: {Create Device - exit(0x00000000)}
dvi: {Create Device - exit(0x00000000)} 12:53:53.047
dvi: {Build Driver List} 12:53:53.078
dvi: Searching for hardware ID(s):
dvi: NetworkMonitor_NMonitor
dvi: Created Driver Node:
dvi: HardwareID - NetworkMonitor_NMonitor
dvi: InfName - C:\Windows\System32\DriverStore\FileRepository\NMonitor.inf_amd64_8634fd53d23a2c2a\NMonitor.inf
dvi: DevDesc - NMonitor Packet Driver (NMonitor)
dvi: Section - NMFInstall
dvi: Rank - 0x00ff0000
dvi: Signer Score - WHQL
dvi: DrvDate - 12/20/2024
dvi: Version - 1.89.0.0
dvi: {Build Driver List - exit(0x00000000)} 12:53:53.500
dvi: {Select Best Driver}
dvi: Class GUID of device changed to: {4d36e974-e325-11ce-bfc1-08002be10318}.
dvi: Selected Driver:
dvi: Description - NMonitor Packet Driver (NMonitor)
dvi: InfFile - c:\windows\system32\driverstore\filerepository\NMonitor.inf_amd64_8634fd53d23a2c2a\NMonitor.inf
dvi: Section - NMFInstall
dvi: {Select Best Driver - exit(0x00000000)}
dvi: Selected driver:
dvi: INF path C:\Windows\INF\oem23.inf
dvi: INF section NMFInstall
dvi: INF version 1.89.0.0
dvi: {_SCAN_FILE_QUEUE} 12:53:53.734
sig: {_VERIFY_FILE_SIGNATURE} 12:53:53.765
sig: Key = NMonitor.sys
sig: FilePath = C:\Windows\system32\DRIVERS\NMonitor.sys
sig: Catalog = C:\Windows\System32\DriverStore\FileRepository\NMonitor.inf_amd64_8634fd53d23a2c2a\NMonitor.cat
! sig: Verifying file against catalog 'NMonitor.cat' failed.
! sig: Error 2: The system cannot find the file specified.
sig: {_VERIFY_FILE_SIGNATURE exit(0x00000002)} 12:53:53.859
dvi: {_SCAN_FILE_QUEUE - exit(0x00000000)} 12:53:53.875
flq: {FILE_QUEUE_COMMIT} 12:53:53.890
flq: Copying 'C:\Program Files\NetworkMonitor\Binary\NETSCAN\Bin\NMonitor.sys' to 'C:\Windows\system32\DRIVERS\NMonitor.sys'.
flq: {FILE_QUEUE_COMMIT - exit(0x00000000)} 12:53:53.969
inf: {Install from INF Section - NMFInstall} 12:53:53.984
inf: Flags - 0x000007af
inf: {Install from INF Section - exit(0x00000000)} 12:53:54.109
inf: Flags: 0x00000000
inf: AddService=NMonitor,,NMFInstall.svc (oem23.inf line 170)
dvi: Add Service: Created service 'NMonitor'.
inf: {Install from INF Section - NMFInstall.svc} 12:53:54.203
inf: Flags - 0x00100004
inf: {Install from INF Section - exit(0x00000000)} 12:53:54.235
inf: {Install from INF Section - NMFInstall} 12:53:54.250
inf: Flags - 0x00000040
inf: {Install from INF Section - exit(0x00000000)} 12:53:54.297
inf: {Install from INF Section - NMFInstall.Remove} 12:53:54.422
inf: Flags - 0x000007af
inf: {Install from INF Section - exit(0x00000000)} 12:53:54.469
inf: Flags: 0x00000000
inf: DelService=NMonitor,0x200 (oem23.inf line 186)
dvi: Deleted service 'NMonitor'.
inf: {Install from INF Section - NMFInstall.Remove} 12:53:54.875
inf: Flags - 0x00000040
inf: {Install from INF Section - exit(0x00000000)} 12:53:54.922
<<< Section end 2025/06/12 12:53:55.015
<<< [Exit status: FAILURE(0x80070241)]