Hi,
I encounter an issue with DifxApi inside Windows Installer on XML. After uninstalling the .msi file, if the system is rebooted, the OS will attempt to load the filter driver. It will never call EvtDriverDeviceAdd(), only DriverEntry(). The issue here is that the file is missing, which results in a corrupt image: a new reboot cycle, attempt to repair, startup errors are not found, sfc.exe /scannow has no effect. This happens on Windows 10. It is unknown if the issue is present on previous Windows versions.
As a test, running “storage\filters\addfilter” WDK sample with “/remove CustomPCIeFilter” shows the following:
- the 1st reboot calls DriverEntry()
- the 2nd reboot does not search for a filter driver
Since AddFilter sample and DifxApi have the same outcome, this indicates that the issue is common. Perhaps a flag inside SetupApi can tune this.
It is possible that the INF file is “weird”, although I used the guidelines from the samples. Is there a way to prevent the OS from loading the filter driver on the 1st reboot?
Thank you,
Calin