StefanG
StefanG

Reputation: 1264

WiX with dynamical resources

We are developing a software tool that is sold to other software companies to be redistributed. We deploy our software with WiX. We get some requests from our clients that they would like to use their own style for the msi (mainly their icons, images and titles). We do not want to let the customers do the packaging themselves since this is too sophisticated. Is it possible to create a msi package with WiX, where some resources as images and strings can be loaded dynamically from external resource later on.

I found Wix: Dynamically Add Features which gives a solution for dynamically add functionality, but not to change existing parts.

Upvotes: 0

Views: 89

Answers (1)

taffit
taffit

Reputation: 2099

Ok, so here my comment as answer (I hope it was helpful ;-)).

As I don't know the exact use case, I would:

  1. Create the base MSI containing all binaries, bitmaps and icons (in the Binary-table)
  2. After building the MSI, invoke the VBS-script rerplacing the binaries and bitmaps with the ones of your customer.
  3. Send the modified MSI to the customer.

If the changes are rather static you could also create a transform file (.MST) containing all the modifications for your customer. You can then merge this transform into your base MSI file using e.g. WiMerge.vbs from the Windows SDK located in v7.1\Samples\sysmgmt\msi\scripts. This would even simpler and can easily be integrated into your build process.

Upvotes: 1

Related Questions