开发者

how to harvest all files in one folder with wix

I have the following requirement: I wish to harvest all files in one folder to my install packet, but the files in that folder may increase or decrease, how can i do it automatically? and if i have two file sources, i wish file in source 2 auto-overwrite file in source 1 with sa开发者_运维技巧me file name, how can i do this? thanks!


You can't include several file from Wix directly, but you can use a tool named "heat" to do it for you. Be careful it is not recommended to use it automatically on build.

Link to the Doc.

I don't understand your second question.


Sure you can harvest all files in one folder even the number is not stable.

For example:

heat dir "src" -gg -sfrag -out src.wxs

This will harvest the sub folder "src" as a single fragment to the file src.wxs. You will then use candle and light to pack them into your msi.

If the number of files changes, just re-run heat and the src.wxs will be updated.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜