Hello,
Environment: Windows x86 8.1 English
I am making use of the SetupAPI:InstallHInfSecton to install drivers. This API is used in my MSI package.
When the driver package is installed, the associated .sys file is copied to %windows%\system32\drivers.
One of the hotfix packages contains an updated driver package thereby resulting in an updated version of the .sys file being copied to %windows%\system32\drivers.
However, when the hotfix is uninstalled, the .sys file under %windows%\system32\drivers is not being reverted back to the base version.
i.e in other words, InstallHInfSection is unable to downgrade files in %windows%\system32\drivers. This always used to work properly in Win 7.
The strange part is that when i use the same API outside of my MSI package, the downgrade happens as expected.
This has always worked until now.
The following lines were logged in setupapi.app log file:
! flq: 10:30:50.621 A target file was not overwritten. Version of source file: 7.1.0.4043. Version of target file: 7.1.16.4043.
! flq: 10:30:50.621 The SPFQNOTIFY_TARGETNEWER flag was set.
Can someone tell me as to what coudl have gone wrong?
Regards,
Kiran Hegde