I am currently trying to install a filter driver using wix. Here is the code that I am using.
<Directory Id="DCVFilterDriver" Name="FilterDriver">
<Component Id="FilterDriver" Guid="xxxxx">
<File Source="$(var.RESOURCE_DIR)filter-driverfd.sys" DiskId="1" KeyPath="yes" />
<File Source="$(var.RESOURCE_DIR)filter-driverfd.inf" DiskId="1" />
<File Source="$(var.RESOURCE_DIR)filter-driverfd.cat" DiskId="1" />
<WixDifx:Driver DeleteFiles="yes"/>
</Component>
</Directory>
But when my application is installed I do not see the driver installed. I dug deep into the logs and I found this warning.
DIFXAPP: WARNING:No device Ids found in INF 'C:WindowsSystem32DriverStoreFileRepositoryfd.inf_amd64_95b7c55f67471298fd.inf' for current platform.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0xE0000301)
In the .inf file there is no hardware id. Since this driver is not something we developed, there is no way to edit it. I am however able to right-click the inf file and install it successfully.
My question is how do I install the filter driver using wix - is it possible? If yes, how and what is the mistake I am doing. Thanks for the help in advance. :)
question from:
https://stackoverflow.com/questions/66050161/unable-to-install-filter-driver-using-wix 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…