似乎无法让 Wix 安装驱动程序 [英] Can't seem to get Wix to install driver
问题描述
我按照这里的教程进行操作:http://www.codeproject.com/KB/library/driver-install-with-wix.aspx 但它似乎不想工作 - DPInst
exe 似乎从未真正运行过?所有文件都被正确放置 - 我什至注意到在教程中他们错过了一个报价.
I followed the tutorial here: http://www.codeproject.com/KB/library/driver-install-with-wix.aspx but it just doesn't seem to want to work - the DPInst
exe never actually seems to run? All the files are being laid-down correctly - I even noticed that in the tutorial they missed a quote.
我的自定义操作如下所示:
My custom action looks like this:
<CustomAction Id='Install_M2_Driver'
Execute='deferred' Directory='DRIVER_ROOT'
ExeCommand='"[dirDpInst]DPInst.exe" /SA /PATH "[dirM2]"'
Return='ignore' />
我什至尝试用一个简单的 exe 替换 DPInst.exe
启动它会调出 DPInst 安装 GUI.
I even tried replacing the DPInst.exe
with a simple exe that echoed the arguments back to me, everything looks good, if I actually run the command from the command-line while the echo message box was up it would bring up the DPInst install GUI.
推荐答案
找到了,需要关闭模拟:
Found it, need to turn impersonate off:
<CustomAction Id='Install_M2_Driver'
Execute='deferred'
Directory='DRIVER_ROOT'
Impersonate='no'
ExeCommand='"[dirDpInst]DPInst.exe" /SA /PATH "[dirM2]"'
Return='ignore' />
这篇关于似乎无法让 Wix 安装驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!