Provides a way to dynamically generate file elements in a component defined in a Wix file.
Example Usage:
<WixAddFilesToComponent Files="@(ScriptFiles)"
XPath="$(JsBaseXPath)" NamespaceURI="$(Namespace)"
Namespaces="$(NamespaceManager)" XmlFile="$(WixFile)" />
| Attribute | Description | Required | Type | Direction |
| XmlFile | The file to make the changes to | True | String | Input |
| XPath | The XPath to find the component to add the files to | True | String | Input |
| NamespaceURI | The default namespace. This is set to http://schemas.microsoft.com/wix/2006/wi by default. | False | String | Input |
| Namespaces | A string array of prefix:namespace strings. | False | String[] | Input |
| Files | An array of files to add. | True | String[] | Input |
| Compressed | Indicates if the files should be marked compressed | False | Boolean | Input |
| Disk | The disk id to assign the files to | True | Integer | Input |
| KeyPath | Indicates if the files should be marked as a KeyPath | False | Boolean | Input |
| Vital | Indicates if the files should be marked as Vital | False | Boolean | Input |
| Hidden | Indicates if the files should be marked as Hidden | False | Boolean | Input |
| SystemFile | Indicates if the files should be marked as system files | False | Boolean | Input |
| ReadOnly | Indicates if the files should be marked as readonly | False | Boolean | Input |
Note: Namespaces contains "wix:http://schemas.microsoft.com/wix/2006/wi" by default. Since the document has a default namespace, the "wix" prefix is used to perform an XPath Query.
Here is an example XPath query to pass to this task to find the component.
//wix:Component[@Guid='$(MyComponentGuid)']