Light Task

Windows Installer XML (WiX) v3.0

Lit Task

The Light task wraps lit.exe, the WiX library tool. It supports a variety of settings that are described in more detail below. The following is a sample shows a the NAnt code used to run the Lit task:

<lit
  exedir="${wix.dir}"
  out="${output.dir}\Setup.wixlib"
  bindfiles="true"
  rebuild="true">
  <sources basedir="${release.dir}\Setup\obj">
    <include name="*.wixobj" />
  </sources>
</lit>

The following table describes the common WiX NAnt parameters that are applicable to the Lit task.

Parameter Description
exedir Optional string parameter.

Sets the directory to the tool executable. Defaults to the path specified by the registry key "HKLM\SOFTWARE\Microsoft\Windows Installer XML\3.0\InstallRoot" which is set by the WiX installation.
If no path is found or specified the task assumes the executable is on the path.
out Required string parameter.

Sets the file or directory to write the output to. This is equivalent to the -out switch.
extensions Optional string parameter.

Semi-colon separated list of WiX extensions to load. This is equivalent to the -ext switch.
rebuild Optional boolean parameter.

Instructs NAnt to recompile the output file regardless of the file timestamps..
sources Required NAnt fileset.

The set of source files for compilation. This is equivalent to the -xx switch.
warningsaserrors Optional boolean parameter.

Specifies that certain warnings should be treated as errors. This is equivalent to the -wx switch.
verbose Optional boolean parameter.

Specifies that the tool should provide verbose output. This is equivalent to the -v switch.

The following table describes the parameters that are specific to the Lit task.

Parameter Description
bindfiles Optional boolean parameter.

This is equivalent to the -bf switch in lit.exe.
localizations Optional NAnt fileset.

The set of localization files (.wxl) to include. This is equivalent to the -loc switch in lit.exe.

Additional options can be added by using the standard NAnt <arg> elements, e.g.:

<arg line="-ss" />