Menu

#312 Specify working dir for quiet execution custom actions

migrated
nobody
2013-08-21
2007-08-06
pokpok
No

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.

Discussion

  • Anonymous

    Anonymous - 2010-06-24

    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...

     
  • Ivan Boyko

    Ivan Boyko - 2012-11-21

    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?

     
  • Rob Mensching

    Rob Mensching - 2013-08-21
    • Status: open --> migrated
     
MongoDB Logo MongoDB