Can't seem to get Wix to install the driver

I followed the tutorial here: http://www.codeproject.com/KB/library/driver-install-with-wix.aspx , but it just doesn't want to work - DPInstexe never seems to work? All files are installed correctly - I even noticed that in the textbook they missed the quote.

My custom actions are as follows:

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

I even tried replacing it DPInst.exewith a simple exe, which repeated my arguments, everything looks fine, if I actually run the command from the command line, while the echo window has been raised, this will cause DPInst to install the GUI.

+3
source share
1 answer

Found, you need to disable the performance:

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

Source: https://habr.com/ru/post/1788289/


All Articles