Dan
Dan

Reputation: 63

Wix: Dynamically Add Features

We are using Wix to build msi for our software. We have some components (plugins) to be implemented to the target machine. The plugins are different from one client to another. What we want to be able to do is to create a standard build and modify the feature list in the msi package. Is there a way to change the feature list dynamically from a custom action? (e.g. read the available plugins from a custom action and add some entries into the msi feature list accordingly)?

Any comments, advice, ideas are very much appreciated.

Upvotes: 2

Views: 831

Answers (1)

Christopher Painter
Christopher Painter

Reputation: 55581

I've done a trick in the past where you build the MSI with external CABs ( 1 per feature ) and then use a custom action to verify that the CABs exist. If they don't exist you hide the feature. This way you can just build the installer once but then ship it to customers with different feature sets.

BTW, InstallAware has supports this story natively I believe.

Upvotes: 3

Related Questions