Hey Brian, Which version of heat.exe are you using? Is it this weeks drop? Second, if you could show more or your source wixproj that would be great. Also, the PreprocessorVariable takes only "var.MyVar" not "$(var.MyVar).
Do you know about the VSProject harvestor extension? This might work for what you are doing. Check it out "heat.exe -?" and look for "project". Thanks, Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Mon, Apr 20, 2009 at 7:51 AM, Brian Bakkebo <bbakk...@gmail.com> wrote: > Hello Brian, thanks for your response below. It solved just about > everything for me. Now I have a problem with the heat output: > <File Id="filECAD2FA36BABE7788C7D38952DE30E56" KeyPath="yes" > Source="SourceDir\" > So I tried to do this here: > Adding this: > <HeatDirectory > PreprocessorVariable="$(var.MyVar)" > .../> > based on your heat examples here: > http://icumove.spaces.live.com/blog/cns!FB93073C6534B681!461.entry<http://icumove.spaces.live.com/blog/cns%21FB93073C6534B681%21461.entry> > > But I am not quite sure how to define this variable in the wix project file > or if I can? > What I am trying to do is have this point to my output directory ie:Debug > or > Release\ > Can you give me an idea of what I need to do here. > > Med vennlig hilsen /Regards > Brian > > 2009/4/19 Brian Rogers <rogers.br...@gmail.com> > > > 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 <bbakk...@gmail.com> > 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 > > > WiX-users@lists.sourceforge.net > > > 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 > > WiX-users@lists.sourceforge.net > > 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 > WiX-users@lists.sourceforge.net > 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users