View Full Version : Redirect output of custom action

10-31-2014, 08:08 AM

I have 3154 custom action which calls a tool from our setup. I want to redirect the output of this tool to file and set the command line to:

[\>][\"][INSTALLDIR]DVCTool\dvctool.log[\"] 2[\>]&1

I read that I have to escape the > and ". But that does not work. The pops up as a command line windows and I can see the output. But the file does not get written.

I already tested without escapes and also without quotation marks. But nothing works. How can get this simple problem solved?

Bye Sven

10-31-2014, 10:14 AM
The notation > output is typically processed by the command shell; the way Windows Installer invokes custom actions does not understand this notation. If you need this to work, you will need to invoke the command shell using a command line like cmd.exe /c ..., or equivalent.