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: [email protected]
> To: [email protected]
> Subject: Re: [WiX-users] HeatFile not works if build in Release
>
> How are you calling HeatFile?
>
>
> Marco Tognacci <[email protected]> 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.clktrk
> _______________________________________________
> WiX-users mailing list
> [email protected]
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users