似乎无法让Wix安装驱动程序 [英] Can't seem to get Wix to install driver

查看:79
本文介绍了似乎无法让Wix安装驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里遵循了该教程: 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.

我的自定义操作如下:

<CustomAction Id='Install_M2_Driver'
              Execute='deferred' Directory='DRIVER_ROOT'
              ExeCommand='"[dirDpInst]DPInst.exe" /SA /PATH "[dirM2]"'
              Return='ignore' />

我什至尝试替换 DPInst.exe 通过一个简单的exe可以将参数回显给我,一切看起来都很好,如果在echo消息框处于打开状态时实际上从命令行运行命令,则会弹出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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆