Hi,
I have to run a command line utility from IS (Installscript). It has output to the stdout. How do I 'catch' this output from within the Installshiled?
Thanks in advance
Nirs
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Reading stdout from Installshield
Started by
nirsilgi
, Oct 03 2004 18:35
4 replies to this topic
Posted 03 October 2004 - 19:36
You could redirect the output to a file, like
dir > output.txt
and then read from that file
dir > output.txt
and then read from that file
Stefan Krüger
InstallSite.org twitter facebook
Posted 05 October 2004 - 17:00
Hi again,
For some reason it doesn't work with LaunchAppAndWait
Here's the code:
GetSystemInfo ( DATE , nvResult , svResult );
GetSystemInfo ( TIME , nvResult2 , svResult2 );
szProgram = SUPPORTDIR + "CantCMD.exe";
szCmdLine = svResult + " " + svResult2 + " " + svEdit3 + " >output.txt";
LaunchAppAndWait ( szProgram , szCmdLine , LAAW_OPTION_HIDDEN );
After it's executed, there is not output.txt in the SUPPORTDIR or in any other place.
When I run it from cmd with the same path and params, it works.
Can anyone help?
Thanks in advance...
Nirs
For some reason it doesn't work with LaunchAppAndWait
Here's the code:
GetSystemInfo ( DATE , nvResult , svResult );
GetSystemInfo ( TIME , nvResult2 , svResult2 );
szProgram = SUPPORTDIR + "CantCMD.exe";
szCmdLine = svResult + " " + svResult2 + " " + svEdit3 + " >output.txt";
LaunchAppAndWait ( szProgram , szCmdLine , LAAW_OPTION_HIDDEN );
After it's executed, there is not output.txt in the SUPPORTDIR or in any other place.
When I run it from cmd with the same path and params, it works.
Can anyone help?
Thanks in advance...
Nirs
Posted 05 October 2004 - 18:30
I thnik you need to put this in a cmd file, not on the command line
Stefan Krüger
InstallSite.org twitter facebook