<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Rainer,<br>
tanks for your answer.<br>
/Q wasn't sufficient.<br>
I added "%COMSPEC% /c" and "> NUL" instead of "
>%TEMP%\install-log.txt 2>&1" and it solved
the problem.<br>
<div class="moz-signature">
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<title></title>
<p>Sincères salutations (br!).<br>
</p>
<p style="margin-bottom: 0cm"><font face="Arial"><font size="2">Vincent
MALIEN<br>
<a href="mailto:v.malien@socofer.com">v.malien@socofer.com</a><br>
tel: 02.47.39.73.24<br>
fax: 02.47.37.63.04</font></font></p>
<font color="#333333"><font face="Arial, sans-serif"><font
size="2"><i><br>
12 Avenue Yves Farge<br>
BP 20258<br>
37702 St Pierre des Corps cedex 2<br>
</i></font></font></font>
<font color="#009900"><font size="2"><b>Avant d'imprimer, pensez
à l'environnement.</b></font></font>
</div>
Le 04/07/2014 15:48, Rainer Meier a écrit :<br>
</div>
<blockquote cite="mid:53B6B0C3.2080509@wpkg.org" type="cite">Hi
Vincent,
<br>
<br>
On 04.07.2014 09:47, Vincent Malien wrote:
<br>
<blockquote type="cite">I did a silent installer for Divalto
Infinity: <a class="moz-txt-link-freetext" href="http://wpkg.org/Divalto_infinity">http://wpkg.org/Divalto_infinity</a>
<br>
it started to work fine, but since I added a xcopy of 108 files,
the script
<br>
stalls on this line:
<br>
<install cmd='xcopy /Y "%SOFTWARE%\Divalto\sys\*.*"
c:\divalto\sys\*.*'/>
<br>
This command woks fine direct from the shell.
<br>
</blockquote>
<br>
You've been just trapped by Microsoft bug in WSH. If your commands
send more than ~4kB of output to STDOUT and the buffer fills up,
then Windows will stop the process until STDOUT is flushed. Though
I spent a lot of time on potential workarounds of this issue but
there is none. So you need to make sure your commands don't print
that much on STDOUT.
<br>
<br>
Unfortunately xcopy is going to print really a lot of output by
default which you won't see at all. So my recommendation is to
redirect this output to NUL:
<br>
<br>
<br>
<install cmd='%COMSPEC% /c xcopy /Q /Y
"%SOFTWARE%\Divalto\sys\*.*" c:\divalto\sys\*.* > NUL'/>
<br>
<br>
Caution: Didn't check or verify the command. But it should
redirect its output to NUL (suppress it) and moreover also reduce
the output by using /Q option.
<br>
<br>
Perhaps just adding /Q option would be sufficient even without
redirect.
<br>
<br>
<br>
<blockquote type="cite">In the FAQ, I found the topic 'My install
command just stalls and never finishes
<br>
' which looks like my problem, so I changed the script like
this:
<br>
<install timeout="1000" cmd='xcopy /Y
"%SOFTWARE%\Divalto\sys\*.*"
<br>
c:\divalto\sys\*.* >%TEMP%\install-log.txt
2>&1'/>
<br>
</blockquote>
<br>
<br>
2>&1 is not adequate redirect to NUL. It will just append
STDERR to STDOUT which will even print more to STDOUT. You need to
redirect STDOUT to nul to suppress it, or use /Q argument of xcopy
to reduce amount of data printed.
<br>
<br>
br,
<br>
Rainer
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>