79411522

Date: 2025-02-04 11:34:09
Score: 0.5
Natty:
Report link

In order to include all the dependencies (dll,jsons,xml) or multiple files present inside a directory , you need to take help of heat.exe - a wix tool which harvests (WiX terminology of copying ) files from source to destination directory . A typical heat command may look like below:

heat.exe dir "C:\DirectoryneedstobeHarvested" -ke -cg WholeTree -ag -scom -sreg -dr INSTALLFOLDER -srd -out "C:\SomeFilderPath\WholeTree.wxs" fc "C:\SomeFilderPath\WholeTree.wxs" "$(ProjectDir)WholeTree.wxs" >NUL

This command will generate a file called WholeTree.wxs which in turn will get compiled when you refer this under a Feature section like below

<ComponentGroupRef Id="WholeTree" />

Refer this link for WiX documentation of heat

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: madhusudhan samantray