[CMake] CPack WIX: Using FirewallException

Daiwei Li daiweili at gmail.com
Tue Nov 12 03:27:52 EST 2013


Hi Nils,

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.

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 :).

Thanks,
Daiwei


On Tue, Nov 12, 2013 at 12:07 AM, Nils Gladitz <nilsgladitz at gmail.com>wrote:

>  On 11/12/2013 03:46 AM, Daiwei Li wrote:
>
> Hello,
>
>  I'm having trouble adding a FirewallException (
> http://wixtoolset.org/documentation/manual/v3/xsd%5Cfirewall%5Cfirewallexception.html) 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.
>
>  Any suggestions on how I can get this element added? Am I missing
> something?
>
>   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).
>
> 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.
>
> 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.
> And/Or a CMake list variable with key, value pairs consisting of insertion
> points and XML snippets.
>
> Nils
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131112/ecdf463e/attachment.htm>


More information about the CMake mailing list