Recommendation: Launching IA setups from with MSI Code
Posted: Tue Jul 27, 2010 1:05 am
Hi,
I need to call a number of setups (both IA setups and other setups) from my MSI code. I have had limited success and have tried many techniques.
The most successful so far has been to use File Bags containing MSIs that have been created using the Group Policy wizard. These MSI's were originally "Single File" IA setup exes prior to be converted by the Group Policy Wizard.
I then executed these MSIs using (Un)Install MSI setup. This were successful in that most error messages were reported back to the calling MSI code.
However, I found that the calling code was not waiting for these finish, resulting in multiple setups running at the same time. This is very slow, and also some of the other non-IA setups I was trying to run were failing with a "Another installation is in progress" message.
In short, is there a recommended way to launch and run an IA-created setup from within another IA setup so that (hopefully):
* It runs silently (i.e. all defaults are used and no user interaction is required)
* Error messages are reported back to the calling MSI code
* It waits until each setup has finished before launching the next one?
Thanks.
I need to call a number of setups (both IA setups and other setups) from my MSI code. I have had limited success and have tried many techniques.
The most successful so far has been to use File Bags containing MSIs that have been created using the Group Policy wizard. These MSI's were originally "Single File" IA setup exes prior to be converted by the Group Policy Wizard.
I then executed these MSIs using (Un)Install MSI setup. This were successful in that most error messages were reported back to the calling MSI code.
However, I found that the calling code was not waiting for these finish, resulting in multiple setups running at the same time. This is very slow, and also some of the other non-IA setups I was trying to run were failing with a "Another installation is in progress" message.
In short, is there a recommended way to launch and run an IA-created setup from within another IA setup so that (hopefully):
* It runs silently (i.e. all defaults are used and no user interaction is required)
* Error messages are reported back to the calling MSI code
* It waits until each setup has finished before launching the next one?
Thanks.