ExecDos plug-in: Difference between revisions
m (Adding new author and category links.) |
(→Links) |
||
Line 2: | Line 2: | ||
== Links == | == Links == | ||
Download: ['http://forums.winamp.com/showthread.php?threadid=181442' | Download:<br> | ||
<attach>http://nsis.sourceforge.net/mediawiki/images/0/0f/ExecDos.zip</attach> | |||
['http://forums.winamp.com/showthread.php?threadid=181442' Forum thread] | |||
== Description == | == Description == | ||
Plug-in works with console applications - creates hidden child process with redirected i/o. Compare to NSISdl has one add-on: string parameter that serves as stdin for running application. May be useful if you want to give login/password to running application. String size may be up to 8kB in the special NSIS build, 1 kB max otherwise. Usage: | Plug-in works with console applications - creates hidden child process with redirected i/o. Compare to NSISdl has one add-on: string parameter that serves as stdin for running application. May be useful if you want to give login/password to running application. String size may be up to 8kB in the special NSIS build, 1 kB max otherwise. Usage: |
Revision as of 06:53, 17 July 2005
Author: Takhir (talk, contrib) |
Links
Download:
http://nsis.sourceforge.net/mediawiki/images/0/0f/ExecDos.zip not found
['http://forums.winamp.com/showthread.php?threadid=181442' Forum thread]
Description
Plug-in works with console applications - creates hidden child process with redirected i/o. Compare to NSISdl has one add-on: string parameter that serves as stdin for running application. May be useful if you want to give login/password to running application. String size may be up to 8kB in the special NSIS build, 1 kB max otherwise. Usage:
How To Use
execDos::exec [/TIMEOUT=xxx] application_to_run [stdin_string] [log_file_name]
- TIMEOUT
- TOTAL execution time, milliseconds, for example /TIMEOUT=10000. Default is big enough. Short timeouts may cause app to be terminated.
- application_to_run
- application to run.
- stdin_string
- all that application can get from stdin (optional)
- log_file_name
- file where to put app's stdout (optional)
Example
execDos::exec /TIMEOUT=2000 "$EXEDIR\consApp.exe" "test_login$\ntest_pwd$\n" "$EXEDIR\${APP_NAME}.log" Pop $0 # return value MessageBox MB_OK "Exit code $0"
or
execDos::exec "$EXEDIR\consApp.exe" "" "$EXEDIR\${APP_NAME}.log" execDos::exec "$EXEDIR\consApp.exe"
BAT files specifics. On some of Win98 systems where "Close on exit" option is not set for DOS apps it was found that after batch execution was finished (and installer continue it's job) hidden window still remains in the system as "winoldapp". Following two lines solve the problem
@echo off # place your code here cls
Telnet and ssh Plug-in not works with applications requiring terminal emulation.