Running an external command line tool as part of a Wix install
I have recently been battling running a command line tool within a Wix 3.6 installer. I eventually got it going but learnt a few things. Here is a code fragment that outlines the solution. <Product ………> ……… loads of other Wix bits <!—Next we define the actual CustomAction that does the work. This needs to be deferred (until after the files are installed) and set to not be impersonated so runs as the same elevated account as the rest of the MSIExec actions....