Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 23rd January 2014, 15:08   #1
chandrahas484
Junior Member
 
Join Date: Jan 2014
Posts: 1
Execute an exe file and see the output in the cmd prompt and also log the installatio

Hi,
I wanted to execute a .exe file usine Execwait command. I want the execution to be seen in the command prompt and also want the execution to be logged.
I tried with these commands below:
(i)ExecWait '"$temp\test.cmd" /foo "bar baz" /blergh'
In this case the execution is shown in the command prompt but not logged

(ii)ExecWait '"$temp\test.cmd" /foo "bar baz" /blergh > "$temp\stdout.txt"'
In this case the execution is not shown in the command prompt but it is logged into the 'stdout.txt' file

Is there a way, I can do both?(i.e see the execution in the cmd prompt and also log it)

Any help is appreciated.
Thanks.
chandrahas484 is offline   Reply With Quote
Old 23rd January 2014, 15:58   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
To do both you would need to capture the output in your own console application and write it to both your STDOUT stream and to a file at the same time.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
command prompt, execution. execwait, log, logging, nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump