Can't seem to get Wix to install driver

流过昼夜 提交于 2019-11-28 05:23:11

问题


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' />

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.


回答1:


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' />


来源:https://stackoverflow.com/questions/4820598/cant-seem-to-get-wix-to-install-driver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!