I've written a MSBuild project a couple of days ago to learn how it works. 
Looks like this:

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
  <PropertyGroup>
    <!-- WiX Toolset output type. See wix.targets for supported values-->
    <OutputType>package</OutputType>
    <!-- output name. WiX toolset adds the appropriate extension depending on 
the output type-->
    <OutputName>setup</OutputName>
    <!-- where to store the resulting files -->
    <OutputPath>output\</OutputPath>
    <!-- where to find Wix toolset -->
    <Toolpath>.\tools</Toolpath>
    <!-- Configuration to build -->
    <Configuration>Release</Configuration>
    <!-- localized strings. -->
    <LocalizedStringFile>setup.wxl</LocalizedStringFile>
  </PropertyGroup>

  <!-- WiX compile target expects Compile items. We just compile all .wxs in 
current directory-->
  <ItemGroup>
    <Compile Include="*.wxs" />
  </ItemGroup>

  <!-- WiX link target links WixLibrary items in addition to the compile 
outputs-->
  <ItemGroup>
    <WixLibrary Include="tools/wixca.wixlib" />
  </ItemGroup>
  
  <!-- Windows Installer Xml Toolset MSBuild targets -->
  <Import Project="tools\wix.targets" />
 </Project>


That's all. Save the above script as setup.proj and execute

Msbuild setup.proj

To do a complete rebuild use

Msbuild setup.proj /t:rebuild

I've used the latest 2.0 build (2.0.4221.0) for this example. To see what else 
you can do with the Wix MSBuild targets or if you want to use the Candle, Lit 
or Light MSBuild tasks directly, look at wix.targets. 

Martin


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:wix-users-
> [EMAIL PROTECTED] On Behalf Of Bob Arnson
> Sent: Donnerstag, 13. Juli 2006 16:58
> To: Christian Elberfeld
> Cc: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] How to use the MSBuild Tasks without Visual
> Studio
> 
> Christian Elberfeld wrote:
> > Can someone give a short example how to do this ?
> >
> There are no samples in WiX itself at the moment. To use an MSBuild
> tasks assembly, you need to add a <UsingTask> element in your project.
> Then <Import> the WiX.targets project, usually at the bottom of the
> project.
> 
> --
> sig://boB
> http://bobs.org
> 
> 
> 
> -----------------------------------------------------------------------
> --
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-
> us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to