How can I execute a command line from within a WiX script?
I want to dynamically generate a command line string and have it executed. I’m not installing a file related to this.
Using version 3.0.5419.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you probably want is something like this (observing quotes where necessary in the command):
The ExeCommand is where you want to put your command. Here I have notepad launching with a file. Some of the attributes will be different, depending on what your command does – particularly the Execute and Impersonate parameters. It would also be helpful to know what version of WiX you were using (the code above is v2).