Hi Ofer,
'msiexec.exe' is the Windows Installer service process. The service name is called 'msiserver'. This service starts when installation is invoked and stays running for 10 minutes after the installation is completed. This is made to prevent the loaded service data from being unloaded if the setups are run one after another.
To resolve the problem, insert the following code line:
instead of this one:
This will make TestComplete ignore the running 'msiexec.exe' process. More information can be found in the following article: TestedApp.Run.
Besides that, you can use a WMI script to install your msi file. To learn how to do this, please see the How to install a Windows Installer package from a Windows Management Instrumentation (WMI) script article.