I'm wondering, how do I get the output of an execwait command in NSIS. For example, if I run tree
, how would I get the output, which would be the actual tree?
Asked
Active
Viewed 1.2k times
16

noryb009
- 548
- 2
- 10
- 20
-
NSIS has instructions to enumerate files, see FindFirst in the helpfile – Anders Oct 25 '10 at 21:34
-
The command I'm running isn't tree, it's a lot more complex. Tree is just an example. – noryb009 Oct 29 '10 at 01:37
1 Answers
19

Anders
- 97,548
- 12
- 110
- 164
-
11Thanks. I ended up using: nsExec::ExecToStack 'command', pop $1 (for the exit code), pop $1 (for the ouput) – noryb009 Oct 29 '10 at 01:37
-
ExecCmd now states: "This plug-in is no longer updated and has been superseded by the [ExecDos plug-in](http://nsis.sourceforge.net/ExecDos_plug-in)." – icc97 Feb 15 '17 at 13:45
-
@Anders im using execwait to launch an exe but it is stuck on this command and it never proceeds. ExecWait "$INSTDIR\Application\abc.exe" – Dragon Jun 07 '20 at 11:54
-
@Dragon How is this related? ExecWait waits until the process ends. Is it stuck waiting for stdin? – Anders Jun 07 '20 at 16:22