It shows the dialog message everytime. It can find and run the uninstall program, however, it doesn't wait for the uninstall to complete and terminate.
Function OldVer
IfFileExists $INSTDIR\uninst.exe 0 0
MessageBox MB_OK|MB_ICONINFORMATION "Setup will now uninstall an old version of Batch Terminate"
ExecWait "$INSTDIR\uninst.exe"
Return
FunctionEnd
Any ideas?
thank you in advance