installer - Can I optionally Include specific file extensions with Wix Heat using transforms? -
Whether to include only certain file extensions when using the XSLT file to replace the heat storage component using the wooces possible? I know that I can remove the file extension with the following:
& lt; Xsl: key name = "exe-search" match = "wix: component [in [wix: file / @ source, .pdb ']]" use = "@ id" /> & Lt; - !. Pdb - & gt;
But is it possible to include many file types and include everything else (for example: .exe, .dll, .xml)?
Thank you!
Surely inside the condition, you can use full expression, like:
< Pre-> contains (wix: file / @ source, '.pdb') or (wix: file / @ source, '.exe') or (wix: file / @ source, '.dll') or (Wix: file / @ source, '.xml')
If this is just a handful, then the theorem is qualified. To help readability, you can put NewAlline inside the match attribute value (or an attribute in general).
I will use it this way.
& lt; Xsl: stylesheet version = "1.0" xmlns: xsl
= "http://www.w3.org/1999/XSL/Transform" xmlns: y = "http://schemas.microsoft.com / Wix / 2006 / wi "xmlns =" http://schemas.microsoft com / wix / 2006 / y "& gt; & Lt; Xsl: template match = "wi: component [(concat (wi: file / @ source, '|'), '.exe' ') or contains (concat (wi: file / @ source,' | '),' .config | '))] "& gt; & Lt; / XSL: Templates & gt; & Lt; Xsl: template match = "node () | @ *" & gt; & Lt; XSL: Copy & gt; & Lt; Xsl: Apply-Choose Template = "@ *" /> & Lt; XSL: implemented-templates / & gt; & Lt; / XSL: Copy & gt; & Lt; / XSL: Templates & gt; & Lt; / XSL: stylesheet & gt;
Here is a summer command with which it works:
Summer Dior "% wix% \ bin" -cg CompGroup -ag -t byext .xsl - o test.wxs
Comments
Post a Comment