Changes
add wait for process to end script
<install cmd='%software%\mbam-setup.exe /VERYSILENT /NORESTART /LOG="%TEMP%\mbam.log" /MERGETASKS="!desktopicon" /NOICONS' />
<install cmd='%software%\tools\waitforprocess.bat mbam.tmp'/>
<upgrade include='install' />
</packages>
</source>
It seems that the installer forks a separate process for installation, so the install check initially fails. This can be avoided by calling a simple wait script e.g. (See http://lists.wpkg.org/pipermail/wpkg-users/2012-July/008878.html )
<syntaxhighlight lang="dos">
@echo off
:loop
tasklist | find /I "%1" > NUL
if ERRORLEVEL 1 goto jump
ping -n 1 localhost >NUL
goto loop
:jump
</syntaxhighlight>
[[Category:Silent Installers]]