<div dir="ltr">Hi Nils,<div><br></div><div>Yes, I was happy to see that you just added the ability to specify WIX Light and Candle extensions to CMake. I built the next branch from source and adding WixFirewallExtension worked just fine.</div>
<div><br></div><div>I would be agreeable to a CMake list variable with key-value (target - xml snippet?) pairs to embed within the File target, although more investigation of the WIX elements will be required to figure out if this will be sufficient for all use cases. The optional XML input file sounds like a workable idea too. I'm not a CMake developer though, so take my opinion with a grain of salt :).</div>
<div><br></div><div>Thanks,</div><div>Daiwei</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 12, 2013 at 12:07 AM, Nils Gladitz <span dir="ltr"><<a href="mailto:nilsgladitz@gmail.com" target="_blank">nilsgladitz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 11/12/2013 03:46 AM, Daiwei Li
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello,</span>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">I'm
having trouble adding a FirewallException (<a href="http://wixtoolset.org/documentation/manual/v3/xsd%5Cfirewall%5Cfirewallexception.html" target="_blank">http://wixtoolset.org/documentation/manual/v3/xsd%5Cfirewall%5Cfirewallexception.html</a>) element
for my main executable. The documentation says that it must
have a File or Component parent, both of which are generated
by the CPack WIX generator. It doesn't seem like I can add a
FirewallException by using a custom WIX template file, because
of the previously mentioned restriction.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Any
suggestions on how I can get this element added? Am I missing
something?</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<br>
</div>
</div>
</blockquote></div></div>
One more problem with that would probably be that in the current
release you can not pass the command line options to the WiX tools
to load the required extension (though it will probably be in 3.0).<br>
<br>
I don't yet know how to allow customization of the generated code to
allow integration of extension elements like this and would be open
for suggestions or opinions in that regard as well.<br>
<br>
One random though would be an optional extra XML input file (or
other format with XML snippets) that I interleave into the generated
code based on some sort of insertion point specification.<br>
And/Or a CMake list variable with key, value pairs consisting of
insertion points and XML snippets.<span class="HOEnZb"><font color="#888888"><br>
<br>
Nils<br>
</font></span></div>
</blockquote></div><br></div>