I also suggest you do a regsvr32 on your release DLL and ensure that the codebase value in the registry is correct.
Also check your build spew to double check the command line passed to the heat utility. John Cooper <jocoo...@jackhenry.com> wrote: I would expect DirectoryRefId to match the Directory@Id you're substituting. However, this should cause it to break in both Configurations, so I suspect that's not it. Is this Release configuration build breaking on a build server, both locally and on a build server, or just locally? I note you're redirecting the output from the default, and that can cause serious breakage and performance problems on a TFS build server. -- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.® Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -----Original Message----- From: Marco Tognacci [mailto:mark...@live.it] Sent: Friday, July 26, 2013 2:49 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] HeatFile not works if build in Release I have added a node in the setup project in the Before build sections <Target Name="BeforeBuild"> <HeatFile File="..\distribution\Bin\$(Configuration)" PreprocessorVariable="var.HarvestPath" OutputFile="HeatGeneratedFile.wxs" ComponentGroupName="HeatGenerated" DirectoryRefId="INSTALLFOLDER" AutogenerateGuids="true" ToolPath="$(WixToolPath)" SuppressFragments="true" SuppressRegistry="false" SuppressCom="false" SuppressUniqueIds="true" SuppressRootDirectory="true" Transforms="MyTransform.xslt"/> </Target> in MyTransform.xslt I have added the code to change the string "file:///[#myFile.dll]" with "[INSTALLATIONFOLDER]myFile.dll"It all works fine if I compile in Debug mode, but in Release I can't make it works as I have the specific full path that depends on the location of the file and it's not relative. > Date: Fri, 26 Jul 2013 11:49:10 -0700 > From: os...@live.com > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] HeatFile not works if build in Release > > How are you calling HeatFile? > > > Marco Tognacci <mark...@live.it> wrote: > > I have used HeatFile in my setup project to harvest a dll for register it for > COMIf I build my project in Debug mode I have this: > <Component Id="cmpA8B0842041500B0ACE61F7EFD0FBD893" > Directory="dir0F6F75DF46D1BACE2233EC573E6D4AA9" Guid="PUT-GUID-HERE"> > <File Id="myFile.dll" KeyPath="yes" > Source="$(var.SourcePath)\myFile.dll" /> > > <RegistryValue Root="HKCR" > Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32" > Name="CodeBase" Value="file:///[#myFile.dll]" Type="string" Action="write" /> > ... > </Component> > > But if I build the project in Release mode I have this: > <Component Id="cmpA8B0842041500B0ACE61F7EFD0FBD893" > Directory="dir0F6F75DF46D1BACE2233EC573E6D4AA9" Guid="PUT-GUID-HERE"> > <File Id="myFile.dll" KeyPath="yes" > Source="$(var.SourcePath)\myFile.dll" /> > > <RegistryValue Root="HKCR" > Key="CLSID\{0A89A860-D7B1-11CE-8350-444553540000}\InprocServer32" > Name="CodeBase" Value="C:\MyProgramfolder\Bin\Debug\myFile.dll" Type="string" > Action="write" /> > ... > </Component> > > I have in the RegistryValue @Value attribute the full path of the myFile.dll > in the debug folder of my application.I have checked the project and all the > points where could appear Debug or Release I have set $(Configuration), even > the variable SourcePath is located using $(Configuration).Is it a bug in > Heat? or I'm missing something? > > > > > > ---------------------------------------------------------------------- > -------- See everything from the browser to the database with > AppDynamics Get end-to-end visibility with application monitoring from > AppDynamics Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.c > lktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------- > -------- See everything from the browser to the database with > AppDynamics Get end-to-end visibility with application monitoring from > AppDynamics Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.c > lktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users