Thanks Nir, I was specifically looking to use a custom variable or property in 
the heat.exe dir command in order to access a 'dynamic' folder structure based 
on a value that's passed into the .msi.  Is that possible?

For example, in the .wixproj file you would have this command in the 
BeforeBuild node:

        c>heat.exe dir $(ProjectDir)..\SomeStaticName\$(custom.variable)

where $(ProjectDir) is a built-in project reference variable (which is allowed)
but $(custom.variable) is either a preprocessor variable, wix variable, or 
property defined in the product.wxs file.  (Which currently doesn't seem 
possible, but I'm hoping someone knows something that I don't.)

Does that make sense?  Thanks for the help.

-----Original Message-----
From: Nir Bar [mailto:nir....@panel-sw.com] 
Sent: Thursday, March 19, 2015 2:24 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] using custom variables on heat command line

You can use this:

-var <VariableName>     Substitute File/@Source="SourceDir" with a
preprocessor or a wix variable (e.g. -var var.MySource will become 
File/@Source="$(var.MySource)\myfile.txt" and -var wix.MySource will become 
File/@Source="!(wix.MySource)\myfile.txt".

Or this:

-wixvar     Generate binder variables instead of preprocessor variables.

Complete manual here:
http://wixtoolset.org/documentation/manual/v3/overview/heat.html



-----
Nir Bar
Freelance Developer
Mail: nir....@panel-sw.com
Web: www.panel-sw.com 
   - C++ On Windows, Linux and Embedded Platforms 
   - WiX & InstallShield
--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/using-custom-variables-on-heat-command-line-tp7599633p7599635.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Email Confidentiality Notice: The information contained in this transmission is 
confidential, proprietary or privileged and may be subject to protection under 
the law.  The message is intended for the sole use of the individual or entity 
to whom it is addressed. If you are not the intended recipient, you are 
notified that any use, distribution or copying of the message is strictly 
prohibited and may subject you to criminal or civil penalties. If you received 
this transmission in error, please contact the sender immediately by replying 
to this email and delete the material from any computer.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to