Generating File/Directory Fragments in a Wix project using Heat.exe

Sunayan Sarkar · 11K views · 2015 · 22:33

Open on YouTube

Testing, debugging & developer toolsSoftware practice, open source & careerstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the walkthrough they followed when setting up heat.exe fragment generation, usually when they hit errors or want to automate it.

Recommended by 2 people across 2 different months, 2015 to 2016.

What it is

A 22-minute screen-recorded tutorial by Sunayan Sarkar showing how to use WiX's heat.exe to harvest a directory of files into a .wxs fragment for an MSI installer in Visual Studio. It accompanies a written blog post covering the same steps.

What people said

Recommends mrJ · 2015-12 · Stack Overflow · on “How can I use heat.exe to include a constantly changing directory-tree?”

so I have successfully used the WiX extension heat.exe to create static fragment of my directory tree I want to install using this tutorial [this video] (which is really great by the way!)... but since its a huge project and there are constant changes being made as I write... it doesn't help much to have a static fragment which you would have to edit and include into the .wxs each time a change is made... I have searched the web yet not found anything useful on this matter... only the hint that using HeatDirectory Task and/or HeatDirectory Target could lead to a solution? Is there anybody that has some more knowledge in this matter or has already solved a similar problem? I would greatly apprecia

Recommends Ash · 2016-09 · Stack Overflow · on “Wix Error code 319 (-out parameter)”

I am building a Web app installer (.Net). My Wix version is 3.10 and I am using VS2013. I did see a few people also had this issue before, but none of their answers helped me out. I tried to follow through these [this video] steps, I had an other one, exit code 9009 before this, but I cannot get around this 319 error. On the Build Events tab, I have this "Pre-Build Event Command Line". There I have this code: "$(WIX)bin\heat.exe" dir "$(vm4heat)" -cg vm4heat -gg -scom -sreg -sfrag -srd -out "$(ProjectDir)\FilesFragment.wxs" The error message is pretty straightforward, it looks like I am missing a path for the -o or the -out. I don't have the -o, so it must be the -out. But I do have a path there.

Cites F.J · 2015-06 · Stack Overflow · on “unable to get Wix heat.exe working”

i am currently working with wix in combination with visual studio 2013. bud there is something i just dont seem to get working. i am building an installer (.MSI) which means i need to add files to it, of course i dont want to do it al by hand so i am trying to use heat.exe for it bud was not succesful up to this moment. i have tried the following: i made a system variable that points to the location of the files. i put that system variable in the command as described in the Wix documentation: heat dir ".\MySystemVariableName" -gg -sfrag -template:fragment -out directory.wxs i inserted this command in the pre-build command line, also i selected suppress ICE validation. when i build the projec

Cites F.J · 2015-06 · Stack Overflow · on “Wix doesn't include any of the files in the .MSI”

ahh ok, bud to be honest i have no idea with what i need to reference it to, i am using WIX for the first time and to be honest, easy is different and my programming skills are truly basic. i used a video to help me set this up bud i couldn't fint anything he referenced it with. here is a link to the video if you are interested LINK [this video] the part that is applicable to my problem start at around 13 minutes into the video.