This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Redirect output of custom action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 31, 2014
08:08 AM
Redirect output of custom action
Hi,
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 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.
