[wix-users] How to Run a cmdline which contains spaces

Tom Ofek Kafka tom.k at walkme.com
Tue Oct 3 03:42:09 PDT 2017


I am trying to run a cmd line which contains spaces. for example: "ping
localhost". When I configure it in the wxs file the installation fails. But
when using a command with no spaces (for example: "ipconfig") everything
works properly.

Here is the relevant part in the wxs file (changing the ipconfig to ping
localhost or any other command with two or more words will cause failure)

<Property Id="MyProcess.MyTask" Value=""ipconfig""/>

<CustomAction Id="MyProcess.TaskKill" Return="check" Impersonate="no"
Execute="deferred" DllEntry="CAQuietExec" BinaryKey="WixCA"/>


      <Custom Action="MyProcess.MyTask" After="InstallInitialize"/>


Any suggestions?



More information about the wix-users mailing list