Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
282 views
in Technique[技术] by (71.8m points)

windows - Unable to install filter driver using wix

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...