0
votes

I have already a MSI package (with several features) which I created via WiX. Now I also want to install the .NET framework as prerequisite if required. Therefore I created a Bootstrapper application based on WiX. In order to provide a nice looking user interface I created a Custom UI for the Bootstrapper with WPF. Anyway, now I want to create a page in my custom bootstrapper which allows the user to select the features from the MSI before I start with the installation. Here are my questions where I am stuck:

  1. Is there a way to get the available features from the MSI which will be installed in the custom Bootstrapper application so that I can fill my user interface with the according "checkboxes"?

  2. If I can list the available features for the installation (see question #1), how can I apply the user selection from the Boostrapper User Interface to my MSI packages

Any help would be very appreciated.

2

2 Answers

1
votes

In your bootstrapper code you could use the Product Query Functions to open the MSI and determine the available features then display checkboxes for each.

To answer your second question you would just need to pass the feature names on the command line when launching your MSI to install. Comma separate your features and pass them to the ADDLOCAL property.

1
votes

Another approach is to break the MSI package out into several MSI micropackages along the feature lines. Then conditionally install the MSI packages based on UI choices in the bootstrapper.