The instance of msiexec that you launch from the command line should be exiting
if the installation is successful. So should any subprocesses. However, it is
normal for other instances of msiexec to remain running after the installation
is complete. Are you waiting for the right process?
Harry.
On 2010-04-22 11:19 a.m., AJ wrote:
> We are encountering an issue regarding the usage of Windows Installer. Our
> system is Windows XP SP3 with updates applied. The version of Windows
> Installer is 3.01.4002.5512.
>
> We have an automated installer that processes msi files. The msis are
> invoked via the command line via msiexec. There is a random issue where
> msiexec is not exiting and is thus causing our installation processing
> application to hang waiting for it to return.
>
> Our application is creating an instance of msiexec via command line usage.
> Using ProcessExplorer to do some diagnosis, there are also two additional
> instances of msiexec being created outside of our application. So, there are
> a total of three instances created. One is the instance we create ourself,
> one is the Windows Installer service, and the third is a child instance
> created by Windows Installer service.
>
> The interesting thing is that the specific install/msi that is hanging...
> If looking at the application event log there is an event that says the
> installation was successful. However, if we inspect the log file that we are
> creating for the msi, some of the entries in the log are missing towards the
> end as if something is hanging in one of the instances of msiexec.
>
> Our installation processing app is waiting for msiexec to return, so it can
> continue to the next msi to be installed, but because the msiexec never
> exits, our app hangs.
>
> Are there any known issues with this version of Windows Installer that might
> cause this issue?
>
> Thank you.
--
Harry Johnston
http://harryjohnston.wordpress.com