Thank you, Blair. I'll try the approaches and let you know the result. By the 
way, while googling on the solution to the issue, I found some people proposed 
the use -t option to use transform to exclude files from the output wxs file, 
which is my next challenge. However, I did not find documents on how to 
construct the .xsl transform file. Could you please refer me to such documents?

Thanks a lot,
Miaohsi
-----Original Message-----
From: Blair Murri [mailto:os...@live.com] 
Sent: Thursday, June 27, 2013 4:41 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Need heat.exe to include extra file source subfolder

XSLT?
 
The -var argument is expected to be a variable that points to the directory 
that is the argument to the dir argument.
 
One option might be to change -var wix.IntelaTracPath to be -var 
var.IntelaTracPath.de and change your commandline to candle.
 
If calling candle via a wixproj file, add the following to that file:
 
<PropertyGroup>
<DefineConstants>$(DefineConstants);IntelaTracPath.de=!(wix.IntelaTracPath)\de</DefineConstants>
</PropertyGroup>
 
or if you are calling candle directly, try adding -d 
IntelaTracPath.de=!(wix.IntelaTracPath)\de
 
Another variation on the same idea is to add the following to one of your WXS 
files (Product.wxs, perhaps?):
<WixVariable Id="IntelaTracPath.de" Value="!(IntelaTracPath)\de" />
 
and change -var wix.IntelaTracPath to be -var wix.IntelaTracPath.de
 
I haven't tested either approach but they each should be simple enough to try 
(maybe the second approach first, since it is "simpler"). Please let us know if 
either one works.
 
Blair Murri
 
> From: miaohsi.w...@invensys.com
> To: wix-users@lists.sourceforge.net
> Date: Thu, 27 Jun 2013 13:54:34 -0400
> Subject: [WiX-users] Need heat.exe to include extra file source subfolder
> 
> Dear All,
> 
> I am using the command below to generate the .xml file:
> 
> heat.exe dir "%SrcRootDir%\de" -cg IMC_DE  -ag -scom -sreg -sfrag -dr 
> IntelaTrac -var wix.IntelaTracPath -out "%CleintPrjDir%\IMC_DE.wxs"
> 
> And part of the result of the command is displayed below:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>     <Fragment>
>         <DirectoryRef Id="IntelaTrac">
>             <Directory Id="dir16150B49384E356066E4299E645C831C" Name="de">
>                 <Component Id="cmp95AC09678CA38C7BB37512CA3AA819D0" Guid="*">
>                     <File Id="fil87C27E80015617351BD5AEFC01AEA96C" 
> KeyPath="yes" 
> Source="!(wix.IntelaTracPath)\AA.Calculations.Extensions.AdvMath.resources.dll"
>  />
>                 </Component>
> 
> The issue is that I need the Source to look like this:
> 
> Source="!(wix.IntelaTracPath)\de\AA.Calculations.Extensions.AdvMath.resources.dll"
>  />
> 
> How can add the "de" subfolder to the Source value?
> 
> Thanks a lot,
> Miaohsi
> 
> 
> 
> *** Confidentiality Notice: This e-mail, including any associated or attached 
> files, is intended solely for the individual or entity to which it is 
> addressed. This e-mail is confidential and may well also be legally 
> privileged. If you have received it in error, you are on notice of its 
> status. Please notify the sender immediately by reply e-mail and then delete 
> this message from your system. Please do not copy it or use it for any 
> purposes, or disclose its contents to any other person. This email comes from 
> a division of the Invensys Group, owned by Invensys plc, which is a company 
> registered in England and Wales with its registered office at 3rd Floor, 40 
> Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a list of 
> European legal entities within the Invensys Group, please select the Legal 
> Entities link at invensys.com.
> 
> 
> You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
> recept...@invensys.com. This e-mail and any attachments thereto may be 
> subject to the terms of any agreements between Invensys (and/or its 
> subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
> affiliates).
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please select the Legal Entities link at invensys.com.


You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to