Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamically create WIX files without having to edit the wix files manually

Suppose you release the next version of your software, you will have to manually update your WIX files to remove obsolete files and add new files, etc.

My use case is as simple as "recursively add the files under /sample/path in the user target C:\Program Files\MyApp".

Is there a program that does this sort of automation?

like image 776
Sridhar Ratnakumar Avatar asked Sep 16 '09 01:09

Sridhar Ratnakumar


3 Answers

For WiX v3 (and a free solution), look at heat.exe. If you have more advanced harvesting needs, there is a commercial option from FireGiant**.

** Disclaimer: I am the benevolent dictator of the WiX Toolset and CEO of FireGiant. We contribute to the open source project and provide commercial solutions around the project. Pick what works best for you.

like image 137
Rob Mensching Avatar answered Nov 19 '22 11:11

Rob Mensching


If Heat doesn't meet your needs, you may want to look at Paraffin by John Robbins.

like image 4
Chris Shouts Avatar answered Nov 19 '22 13:11

Chris Shouts


For Wix 2 there was a tool called Mallow that did this. It was freeware and I got the source somewhere. This functionality may also be available in Heat.exe at this point, but I am not sure.

It also seems some guys in the Wix community are experimenting with a sort of automatic scanner feature where you can put files in a pre-defined release location and new msi files are continually created - ala "continuous integration".

Are you looking to do this for a lot of packages, or just for one or a few ones? Let me know the scope and I can send you the Mallow code, or dig up links for the "continuous integration" oriented solutions.

like image 3
Stein Åsmul Avatar answered Nov 19 '22 11:11

Stein Åsmul