I started here:
http://weblogs.asp.net/lorenh/archive/2006/01/24/436390.aspx
This is a sample from my build:
<!-- The rebuild flag doesn't work so make sure output is deleted
-->
<delete dir="${source.dir}\Setup\obj" failonerror="false" />
<mkdir dir="${source.dir}\Setup\obj" />
<candle
exedir="${wix.dir}"
verbose="true"
out="${source.dir}\Setup\obj\"
warningsaserrors="true">
<defines>
<define name="BaseDir" value="${source.dir}\Setup" />
<define name="Version"
value="${buildnumber.major}.${buildnumber.minor}.${buildnumber.build}"
/>
<define name="SourceDir" value="${source.dir}\Program" />
<define name="AssembliesDir" value="${output.dir}" />
</defines>
<sources basedir="${source.dir}\Setup">
<include name="*.wxs" />
</sources>
</candle>
<light
exedir="${wix.dir}"
out="${output.dir}\Setup.msi"
warningsaserrors="true"
suppressices="ICE57"
cultures="en-us"
extensions="${wix.dir}\WixUIExtension.dll">
<sources basedir="${source.dir}\Setup\obj">
<include name="*.wixobj" />
</sources>
</light>
One other gotcha is that the tasks working directory might not be where
you expect so you can't always use relative paths in your WiX code.
Neil
PS Can you keep wix-users on the reply so that everyone gets to see the
messages.
From: Ryan Lovelett [mailto:[EMAIL PROTECTED]
Sent: 18 May 2007 18:41
To: Neil Sleightholm
Subject: Re: [WiX-users] NAnt and WiX
That is a huge help Neil. I ended up downloading the source and trying
to piece through all the different build tasks. There wouldn't happen
to be a reference or good example files out there?
On 5/18/07, Neil Sleightholm <[EMAIL PROTECTED]> wrote:
You need to reference the tasks dll e.g.:
<!-- Load the WiX3 tasks -->
<loadtasks
assembly="${wix.dir}\Microsoft.Tools.WindowsInstallerXml.NAntTasks.dll"
/>
Note: the "rebuild" flag for the candle task doesn't currently work so
you will need to make sure the wixobj files are deleted before you call
candle. I have submitted a patch for this which will hopefully make a
build on day.
Neil
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] On Behalf Of Ryan
Lovelett
Sent: 18 May 2007 01:23
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] NAnt and WiX
How do you install WiX tasks for NAnt? I cannot find on NAnt or
NAntcontrib that implements the WiX <candle> tasks.
Thanks,
Ryan
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users