Chaining MSIs in bootstrapper

  • Imprimir
Este artigo ainda não foi traduzido.

This article shows how you can process multiple MSI packages in a single bootstrapper. During the first install, all MSIs will be processed, in the order you specified.

How to build a single installer for multiple MSI packages

  • First, download the zip file that is linked at the bottom of this article. Decompress it, and copy the contents into the Bootstrap\Templates sub folder of your MSI Factory program folder.
  • After your own installer was build, you can now bundle it together with other MSIs into a single bootstrapper. If you installed the template files from my zip file below correctly, you now should have a new option, like shown below:
  • Once the new bootstrapper project was created from the template, go to the Files tab. Now it is time to include your MSI packages. Make sure that you assign the ID "mainsetup" to the main installer, the one that will be run at last. Include all the other MSIs, and give them different IDs.
  • After you made these edits, make sure you saved your bootstrapper project.
  • Now open the mainscript.lua for editing. Look for this code, and change the elements of the tInstallOrder table according to the IDs you used, in the order you want to process the MSIs.
  •  
    tInstallOrder = { "firstMSI", "secondMSI", "thirdMSI" };
     
  • Finally, build the installer. The MSI package will be built, and the bootstrapper will be assembled. Test the setup, and make sure that all MSIs are processed as you configured.
  • If the setup is executed for a second time, it will not reinstall the MSIs, instead it will enter maintenance mode of your application (mainsetup).

By default, all MSIs that are included in the tInstallOrder table will be processed in passive mode: The user won't need to configure anything, and can see the installation progress. The installer for the main application, which is installed as the final step, will be executed in interactive mode, as usual. Of course you can change this behavior by adapting the script to fit your needs.

If you found this example helpful, please leave a comment below.

Download

Bootstrapper template

Click to downloadFile size: 3 KB
Updated: March 2011

Don't have MSI Factory?

If you want to purchase a license for MSI Factory 2, now is a good time! You can get 10% off the list price simply by clicking the banner below:

 

Our Plugins & Examples Feed

  • POP3 Actions plugin released

    A new, free actions plugin was released today. With it, the developer can check POP3...

  • Reminder: Update Serial Number Validation and/or Subscription Validation

    Next week IPInfoDB's API 2.0 will stop working. If you use an older version than...

Subscribe now!

Advertisement