Concurrent MSI Installation issue
Hi,
I have a MSI project, in which i am using a custom action to run a batch file, the batch file is pointed to another MSI. when i run the main MSI, it calls the batch file and batch file calls the child msi. i am getting the following error message
>>>"Another installation is already in progress, complete that installation before proceeding with this install"<<<
is there any tricky way i can proceed with this method of install? ::: Fuad
Answers (3)
If you want to run another MSI installation from a custom action, that action has to be placed in Immediate Context, either before InstallInitialize or after InstallFinalize. At any other point the main installer has exclusive access (the so called mutex) to Windows Installer and another installation cannot run.
If you want to run another MSI installation from a custom action, that action has to be placed in Immediate Context, either before InstallInitialize or after InstallFinalize.
At any other point the main installer has exclusive access (the so called mutex) to Windows Installer and another installation cannot run.
Also I assume you know these so-called nested installs are generally considered to be bad practice?