ExecTimeout plug-in: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
LoRd MuldeR (talk | contribs) (Initial version) |
LoRd MuldeR (talk | contribs) |
||
Line 2: | Line 2: | ||
== Description == | == Description == | ||
This is a simple plugin that will execute an application and wait for the process to exit, just like ExecWait. But in contrast to ExecWait you can specify a timeout. If the application does not exit before the timeout exceeds, the control will return to the installer. This can be used to make sure your installer won't stall, even if the application doesn't exit for some reason. You can either terminate the application on timeout or leave it alone. | This is a simple plugin that will execute an application and wait for the process to exit, just like the ExecWait command. But in contrast to ExecWait you can specify a timeout. If the application does not exit before the timeout exceeds, the control will return to the installer. This can be used to make sure your installer won't stall, even if the application doesn't exit for some reason. You can either terminate the application on timeout or leave it alone. | ||
== Usage == | |||
<pre>; Usage: | |||
${ExecTimeout} <Commandline> <Timeout> <Terminate> <Var ExitCode> | |||
Arguments: | |||
<Commandline> should contain the path to the executable file [string] | |||
<Timeout> specifies the timeout in milliseconds [integer] | |||
<Terminate> specifies whether the process will be terminated on timeout [0|1] | |||
Return Value: | |||
<ExitCode> will return the exit code of the application, "timeout" or "error"</pre> | |||
== Download == | == Download == |
Revision as of 21:56, 1 July 2008
Description
This is a simple plugin that will execute an application and wait for the process to exit, just like the ExecWait command. But in contrast to ExecWait you can specify a timeout. If the application does not exit before the timeout exceeds, the control will return to the installer. This can be used to make sure your installer won't stall, even if the application doesn't exit for some reason. You can either terminate the application on timeout or leave it alone.
Usage
; Usage: ${ExecTimeout} <Commandline> <Timeout> <Terminate> <Var ExitCode> Arguments: <Commandline> should contain the path to the executable file [string] <Timeout> specifies the timeout in milliseconds [integer] <Terminate> specifies whether the process will be terminated on timeout [0|1] Return Value: <ExitCode> will return the exit code of the application, "timeout" or "error"
Download
ExecTimeout.2008-07-01.zip not found