Old 22nd April 2007, 16:02   #1
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
catch realtime output from dos console

Is that possible somehow?

so NOT the result after action - the result meanwhile action...

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 22nd April 2007, 18:26   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
ExecDos might be able to do that. nsExec currently doesn't support it.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 22nd April 2007, 19:23   #3
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
sorry - not with execdos - it only offers a logfile after action.
my app creates a logfile during action but i was asked for
a bar like in "inetc" or "Nzipdll".
duration is depending on amount of files and the bar should
be relativ to this. app is writing one line for each file.

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 22nd April 2007, 20:14   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I was after this same thing once upon a time but I couldn't find a solution. Even for Half-Life 1 command-line map compilers Valve could only read output in WorldCraft/Hammer on a line by line basis.

Stu
Afrow UK is offline   Reply With Quote
Old 23rd April 2007, 10:29   #5
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
ExecDos with /NOUNLOAD /ASYNC /TOSTACK options puts every output line to NSIS stack instead of log file and does this during application execution. Create loop and update progress bar basing on Pop result. The only problem you should solve for yourself is to find execution end. For progress bar you can use nxs (which I know is stable) or any other plug-in.
And I am not sure how safe is mutual access to NSIS stack...
Takhir is offline   Reply With Quote
Old 23rd April 2007, 23:48   #6
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
i'll give it a try - thx
i hope that nsis wont grab much cpu power while looping...

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 24th April 2007, 00:36   #7
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
It will unless you add a 'Sleep' statement! - Section 4.9.7.7
demiller9 is offline   Reply With Quote
Old 24th April 2007, 14:08   #8
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
i know that cause i have other programs running some calculations and they freeze my computer a little bit during that.

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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