WixUtilExtension has a DLL function (CAQuietExec) for executing command-lines in the background (i.e. without a cmd.exe window poping up during the installation). The commandline that is actually executed can be specified in a property named QtExecCmdLine (or QtExecDeferred respectively).
There is no possibility to specify the working directory for the execution. The default working dir of the MSI service or client process (depending on custom action scheduling) will be used. In some cases setting the directory is a must, for instance when you call a batch-script which works with not configurable relative paths.
For such cases having a second property like QtExecWorkDir would be great.
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
Is this feature ever going to make it into WiX? I'm using md.exe /c start /d "MyDir" MyFile.exe workaround right now but it's not ideal because it doesn't work when you put quotes around MyFile.exe. Therefore, MyDir can only be the directory that MyFile.exe is in...
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
I meant to write cmd.exe, not md.exe
We also use cmd.exe clumsy workaround. I'm surprised this request has been in the queue since 2007 and was never dealt with. It doesn't sound like something over complicated.
May be Priority can be reviewed?