[wix-users] Call Heat.exe in a C# console application
Joseph L. Casale
jcasale at activenetwerx.com
Tue Jan 16 09:33:42 PST 2018
From: Ven H [mailto:venh.123 at gmail.com]
Sent: Tuesday, January 16, 2018 10:22 AM
To: Joseph L. Casale <jcasale at activenetwerx.com>
Cc: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Call Heat.exe in a C# console application
> Thank you Joseph. Can you please explain what is XLM or did you mean
> XML and it was a typo? Actually, I have to generate the markup for COM
> components dynamically using C#. I was wondering, if there is an easier
> or better way than using Heat.exe
Yea, it was a typo as I meant XML.
I always put forth considerable effort to avoid invoking processes whenever
I can. In this case, I don't know what is involved in harvesting this type. You
can always check the source and see.
It's trivial to recursively descend a given path and construct the XML elements
you need with any desired attributes to harvest the file and directories.
If it proves not worth the effort in your case, just create a temp file and supply
the arguments to heat.exe and run it.
More information about the wix-users