Reputation: 1226
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 same file name, how can i do this? thanks!
Upvotes: 1
Views: 8653
Reputation: 14632
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.
Upvotes: 1