Dynamically create WIX files without having to edit the wix files manually
Asked Answered
B

5

10

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?

Bacteriostasis answered 16/9, 2009 at 1:31 Comment(0)
S
17

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.

Sommelier answered 16/9, 2009 at 19:30 Comment(0)
F
4

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

Formyl answered 11/8, 2010 at 20:17 Comment(0)
A
3

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.

Anorexia answered 16/9, 2009 at 1:40 Comment(3)
As of now, only a few (few = 1-3). But in future, I would like this to be a general feature as well. See also: #1430997Bacteriostasis
It's looks like you're in luck, someone else appears to have updated Mallow to Wix 3: neilsleightholm.blogspot.com/2008/08/mallow-for-wix-v3.htmlBerbera
I know Christopher Painter has been working on automating wix builds, but I am out of date with regards to status. His blog is here: blog.deploymentengineering.comBerbera
T
3

You can use heat.exe as Rob stated already (i think he knows since he is the man behind), or you can write a simple harvester script, that evaluate the wix-script as pre-compile action of the wix-project. We used a vbscript for that since heat did not suit our problems, cause of different files, different directories, etc.

Trishtrisha answered 16/9, 2009 at 19:35 Comment(0)
A
1

WixEdit has an import folder function that can grab the entire contents of a folder and turn it into Directory/Component/File nodes.

Atwitter answered 25/11, 2009 at 20:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.