You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

wix.html 5.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us"></meta>
  4. <title>Wix Task</title>
  5. </head>
  6. <body>
  7. <h2>Wix</h2>
  8. <h3>Description</h3>
  9. <p>Runs the candle, light or both from the <a
  10. href="http://sourceforge.net/projects/wix">Wix</a> toolset.</p>
  11. <h3>Parameters</h3>
  12. <table border="1" cellpadding="2" cellspacing="0">
  13. <tr>
  14. <td valign="top"><b>Attribute</b></td>
  15. <td valign="top"><b>Description</b></td>
  16. <td align="center" valign="top"><b>Required</b></td>
  17. </tr>
  18. <tr>
  19. <td valign="top">source</td>
  20. <td valign="top">The single source file to process.</td>
  21. <td align="center">Either this or at least one nested
  22. &lt;sources&gt; set.</td>
  23. </tr>
  24. <tr>
  25. <td valign="top">target</td>
  26. <td valign="top">The expected target file.</td>
  27. <td align="center">Yes, unless you run candle without light.</td>
  28. </tr>
  29. <tr>
  30. <td valign="top">mode</td>
  31. <td valign="top">Which part of the toolset to run, one of
  32. &quot;candle&quot;, &quot;light&quot; or
  33. &quot;both&quot;.</td>
  34. <td align="center">No, default is &quot;both&quot;.</td>
  35. </tr>
  36. <tr>
  37. <td valign="top">vm</td>
  38. <td valign="top">Same as <a
  39. href="dotnetexec.html">dotnetexec</a>'s vm attribute.
  40. Specify the framework to use.</td>
  41. <td align="center">No.</td>
  42. </tr>
  43. </table>
  44. <h3>Parameters specified as nested elements</h3>
  45. <h4>sources</h4>
  46. <p>Specify source files that shall be passed on the command line.
  47. This is a <a
  48. href="http://ant.apache.org/manual/CoreTypes/fileset.html">fileset</a>.</p>
  49. <h4>moresources</h4>
  50. <p>Specify source files that shall not be passed on the command
  51. line. This is a <a
  52. href="http://ant.apache.org/manual/CoreTypes/fileset.html">fileset</a>.</p>
  53. <p>Typically this would list include files when running candle or
  54. the files that vecome part of the MSI file when running light.
  55. The files in this set are only used for timestamp comparisons. If
  56. neither these files nor the given &quot;normal&quot; sources are
  57. newer than the expected target, the task won't do anything.</p>
  58. <h3>Examples</h3>
  59. <p>Create <code>product.wixobj</code> from <code>product.wxs</code>:</p>
  60. <pre>
  61. &lt;wix mode="candle" source="product.wxs"/&gt;
  62. </pre>
  63. <p>The same but using a nested sources element:</p>
  64. <pre>
  65. &lt;wix mode="candle"&gt;
  66. &lt;sources dir="."&gt;
  67. &lt;include name="product.wxs"/&gt;
  68. &lt;/sources&gt;
  69. &lt;/wix&gt;
  70. </pre>
  71. <p>Create <code>product.msi</code> from <code>product.wixobj</code>:</p>
  72. <pre>
  73. &lt;wix mode="light" source="product.wixobj" target="product.msi"/&gt;
  74. </pre>
  75. <p>Combine the examples into a single step:</p>
  76. <pre>
  77. &lt;wix source="product.wxs" target="product.msi"/&gt;
  78. </pre>
  79. <p>Note that the task wouldn't do anything if
  80. <code>product.wxs</code> was older than
  81. <code>product.wixobj</code> and <code>product.wixobj</code> was
  82. older than <code>product.msi</code>.</p>
  83. <p>Compile multiple <code>.wxs</code> files at once:</p>
  84. <pre>
  85. &lt;wix mode="candle"&gt;
  86. &lt;sources dir="."&gt;
  87. &lt;include name="*.wxs"/&gt;
  88. &lt;/sources&gt;
  89. &lt;/wix&gt;
  90. </pre>
  91. <p>Compile multiple <code>.wxs</code> files at once, specify some
  92. include files in addition to that:</p>
  93. <pre>
  94. &lt;wix mode="candle"&gt;
  95. &lt;sources dir="."&gt;
  96. &lt;include name="*.wxs"/&gt;
  97. &lt;/sources&gt;
  98. &lt;moresources dir="."&gt;
  99. &lt;include name="*.wxi"/&gt;
  100. &lt;/moresources&gt;
  101. &lt;/wix&gt;
  102. </pre>
  103. <p>Link multiple <code>.wixobj</code> files at once:</p>
  104. <pre>
  105. &lt;wix mode="light" target="product.msi"&gt;
  106. &lt;sources dir="."&gt;
  107. &lt;include name="*.wixobj"/&gt;
  108. &lt;/sources&gt;
  109. &lt;/wix&gt;
  110. </pre>
  111. <p>Link multiple <code>.wixobj</code> files at once and specify
  112. that the files in directory &quot;source&quot; will become part of
  113. the package:</p>
  114. <pre>
  115. &lt;wix mode="light" target="product.msi"&gt;
  116. &lt;sources dir="."&gt;
  117. &lt;include name="*.wixobj"/&gt;
  118. &lt;/sources&gt;
  119. &lt;moresources dir="source"/&gt;
  120. &lt;/wix&gt;
  121. </pre>
  122. <pre>Combine multiple <code>.wxs</code> files and include files
  123. into a single package and specify that the package will contain
  124. files from the source directory:</pre>
  125. <pre>
  126. &lt;wix target="product.msi"&gt;
  127. &lt;sources dir="."&gt;
  128. &lt;include name="*.wxs"/&gt;
  129. &lt;/sources&gt;
  130. &lt;moresources dir="."&gt;
  131. &lt;include name="*.wxi"/&gt;
  132. &lt;/moresources&gt;
  133. &lt;moresources dir="source"/&gt;
  134. &lt;/wix&gt;
  135. </pre>
  136. <p>Again, if the intermediate <code>.wixobj</code> files are newer
  137. that the corresponding <code>.wxs</code> files (and all include
  138. files) the candle step will be skipped. If
  139. <code>product.msi</code> is newer than all files, the task won't
  140. do anything.</p>
  141. <hr/>
  142. <p align="center">Copyright &copy; 2004 The Apache Software Foundation. All rights Reserved.</p>
  143. </body>
  144. </html>