Hey Brian,
Try the below.
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == ''
">Debug</Configuration>
<OutputName>msbuild.heatfile</OutputName>
<OutputType>Package</OutputType>
<WixToolPath>*Pass via the command line*</WixToolPath>
<Cultures>en-us</Cultures>
<LinkerBaseInputPaths>..\..\data\HeatDir</LinkerBaseInputPaths>
</PropertyGroup>
<ItemGroup>
<Compile Include="product.wxs" />
<Compile Include="TestDir.wxs" />
</ItemGroup>
<Import Project="$(WixToolPath)\Wix.targets" />
<UsingTask TaskName="HeatDirectory"
AssemblyFile="$(WixToolPath)WixUtilExtension.dll" />
<Target Name="BeforeBuild">
<HeatDirectory
Directory="..\..\data\HeatDir"
DirectoryRefId="DataDir"
OutputFile="TestDir.wxs"
AutogenerateGuids="true"
ToolPath="$(WixToolPath)" />
</Target>
Thanks,
Brian Rogers
"Intelligence removes complexity." - Me
http://icumove.spaces.live.com
On Sun, Apr 19, 2009 at 5:39 AM, Brian Bakkebo <[email protected]> wrote:
> Hello all (I posted this to the wrong list on friday(wix-users-request))
>
> Rob pointed out to me that there was a way to use heattasks:
>
> http://stackoverflow.com/questions/710687/best-way-to-create-a-wix-fragment-file-based-on-user-defined-directories-to-be-us,but
> I have not been able to get heattask or heatdirectory to work after trying
> different methods.
>
> I found a much earlier post on the mailing-list here stating that you can
> use this a command like this in the wixproj file below to get HeatDirectory
> to work:
>
>
> <WixToolPath>..\..\DLL\Wix\</WixToolPath>
> <WixTasksPath>$(WixToolPath)\wixtasks.dll</WixTasksPath>
> <WixTargetsPath>$(WixToolPath)\Wix.targets</WixTargetsPath>
> </PropertyGroup>
>
> <Target Name="BeforeBuild">
> <HeatDirectory Directory="..\..\DLL\Wix\" OutputFile="test.wxs"
> GenerateGuidsNow="true" SuppressFragments="true" Template="module"
> ToolPath="$(WixToolPath)" />
> </Target>
>
> The build succeeds, but I am not seeing any file output and no mention of
> heat running in the output in vs. I also tried msbuild same results...
>
> 1. Can someone give me proper syntax for this to run from a Visual studio
> wix project for the HeatDirectory and a HeatTask commands?
>
> I could not find any documentation on this, perhaps this would help out as
> well. I will update my post to stackoverflow when I get this all worked
> out,
> to share the infor.
>
> Thanks in advance for your help.
>
> I can provide my full .wixproj if it is needed
>
> Thanks in advance
>
> Brian
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users