title: How to run heat.exe and register a dll in wix
body: <p>I need to register a dll in regAsm and now i was using </p>
  
  <pre><code> &lt;CustomAction Id='comReg' Directory='INSTALLLOCATION'  
                  ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v4.0.30319\regasm.exe" "[INSTALLLOCATION]myProduct.dll"  /codebase' Return='check' /&gt;
  </code></pre>
  
  <p>to register and to unregister </p>
  
  <pre><code>&lt;CustomAction Id='comUnreg' Directory='INSTALLLOCATION' ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v4.0.30319\regasm.exe" /u "[INSTALLLOCATION]myProduct.dll"  /codebase' Return='check' /&gt;
  </code></pre>
  
  <p>Am using it and sometimes its installing and somnetimes it gives error.
  But all are recommending to use something Heat.exe,
  <a href="http://wixtoolset.org/documentation/manual/v3/overview/heat.html" rel="noreferrer">http://wixtoolset.org/documentation/manual/v3/overview/heat.html</a> even i went through this link,but i need how to use it in wix and what to do with this stuff.I need some tuitorial</p>