Awesome, thanks!

So for anyone else here is what i did created a PropertyGroup with the
paths to WixToolPath

<PropertyGroup>
 <WixToolPath>$(WorkingFolder)\..\tools\wix\3.7.1124.0\</WixToolPath>
<WixTargetsPath>$(WixToolPath)Wix.targets</WixTargetsPath>
 <WixTasksPath>$(WixToolPath)wixtasks.dll</WixTasksPath>
</PropertyGroup>

Then
<MSBuild Projects="$(WixMsiDir)Desktop.wixproj"
Properties="Version=$(Version);WixToolPath=$(WixToolPath);WixTargetsPath=$(WixTargetsPath);WixTasksPath=$(WixTasksPath)"
Targets="Rebuild" />

It works like a charm.


On Tue, Oct 22, 2013 at 1:14 PM, John Ludlow <john.ludlow...@gmail.com>wrote:

> Through a mixture of trial and error we identified 6 properties that we
> needed to provide. We actually do this on the msbuild command line which
> calls our solution build rather than a .proj file but the concept is the
> same.
>
>   WixToolPath=g:\BuildSoftware\Wixv3.6.3303.0\
>   WixTasksPath=g:\BuildSoftware\Wixv3.6.3303.0\\WixTasks.dll
>   ReferencePath=g:\BuildSoftware\Wixv3.6.3303.0\
>   WixTargetsPath=g:\BuildSoftware\Wixv3.6.3303.0\wix.targets
>   WixCATargetsPath=g:\BuildSoftware\Wixv3.6.3303.0\sdk\wix.ca.targets
>   WixSdkPath=g:\BuildSoftware\Wixv3.6.3303.0\sdk\
>
> Simply add these into your Properties list (semicolon delimited)
>
> Depending on what you're doing and how you have wix organised you might not
> need all of the properties. Our experience suggests the following (though
> if someone knows better, feel free to correct me!):
>
> Always required:
>   WixToolPath
>   WixTasksPath
>   WixTargetsPath
>
> Required when using C# DTF Custom Actions:
>   ReferencePath
>   WixCATargetsPath
>   WixSdkPath
>
> Hope that helps
>
> John
>
>
>
>
> On 22 October 2013 11:45, Ilir Bekteshi <ilir...@gmail.com> wrote:
>
> > How would i set WixToolPath, WixTargetsPath and WiXTasks path from
> another
> > proj file (not wixproj)?
> >
> > Right know i have another project.proj with
> > <Target Name="AfterBuild">
> >  <Message Text="$(Version)"/>
> > <MSBuild Projects="$(WixMsiDir)Desktop.wixproj"
> > Properties="Version=$(Version)" Targets="Rebuild" />
> >  </Target>
> >
> > But would like to set paths to Wix binaries from this proj so that when
> > it's build from cmd (build server) it uses Wix that i have checked in,
> and
> > when i build from studio i use the installed Wix.
> >
> > Thanks
> >
> >
> ------------------------------------------------------------------------------
> > October Webinars: Code for Performance
> > Free Intel webinars can help you accelerate application performance.
> > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> > from
> > the latest Intel processors and coprocessors. See abstracts and register
> >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to