Changes
no edit summary
RoboCopy allows you to copy files in restartable mode. If the copying process or network connection dies it will start where it left off instead of starting over and copying the entire file.
Robocopy exit codes 0-3 are all success codes (http://ss64.com/nt/robocopy-exit.html).
WPKG has a bug that stalls wpkg.js if the command outputs too much text. RoboCopy tends to output a lot of text even when copying small files and RoboCopy doesn't have a silent flag so you have to use 5 different flags to disable all of the output.
An example install command looks like this:
<source lang="xml">
<install cmd='%COMSPEC% /c robocopy /Z /NP /NDL /NFL /NJH /NJS "%Software%\7-Zip" "%Temp%\7-Zip" "7z%FileVersion%.msi"' > <exit code="any" '0' /> <exit code='1' /> <exit code='2' /> <exit code='3' /></install>
</source>
or this if you want to copy the entire folder:
<source lang="xml">
<install cmd='%COMSPEC% /c robocopy /Z /S /NP /NDL /NFL /NJH /NJS "%Software%\7-Zip" "%Temp%\7-Zip"' > <exit code="any" '0' /> <exit code='1' /> <exit code='2' /> <exit code='3' /></install>
</source>
<source lang="xml">
/Z : Copy files in restartable mode (survive network glitch).