Jump to content


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

Reading stdout from Installshield


4 replies to this topic

nirsilgi

nirsilgi
  • Members
  • 5 posts

Posted 03 October 2004 - 18:35

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


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 03 October 2004 - 19:36

You could redirect the output to a file, like
dir > output.txt
and then read from that file

nirsilgi

nirsilgi
  • Members
  • 5 posts

Posted 04 October 2004 - 09:33

Thanks very much.... I'm a bit rusted with DOS unsure.gif

nirsilgi

nirsilgi
  • Members
  • 5 posts

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

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 05 October 2004 - 18:30

I thnik you need to put this in a cmd file, not on the command line