[wix-users] How to supply value of var argument of heat command while compiling in VS

Ven H venh.123 at gmail.com
Wed Mar 21 00:58:25 PDT 2018

I think if we do this, then it sets the value of "Define preprocessor
variables" in the Build tab of the Project properties. However, I tried
doing this in the way mentioned above. But now, it throws an error "*The
variable 'OutDir' with value 'bin\debug\' was previously declared with the
value 'Files'.*" But I am pretty sure, I have not declared it anywhere
else. Not able to understand what's going on. Please help.


On Tue, Mar 20, 2018 at 8:13 PM, Hoover, Jacob <Jacob.Hoover at greenheck.com>

> In the WixProj,
>         <PropertyGroup>
>                 <DefineConstants>
>                   $(DefineConstants);
>                 OutDr=C:\Foo;
>                 </DefineConstants>
>         </PropertyGroup>
> I am sure there are other means of doing it, but as I am most comfortable
> with msbuild I go direct to the wixproj.  This also allows you to property
> drive the variable, and be able to provide updated values from a cli build.
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Ven H via wix-users
> Sent: Tuesday, March 20, 2018 3:00 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Ven H <venh.123 at gmail.com>
> Subject: [wix-users] How to supply value of var argument of heat command
> while compiling in VS
> I am using Heat.exe to harvest a folder with some files. For the argument
> called "-var", I am providing a value "var.OutDir" and the heat output is
> generated. Now, I am trying to use this wxs file in my Visual Studio setup
> project. But, I am getting a compile error. I am not sure where to supply
> the value of Var argument in Visual Studio. I tried providing it in the
> Build tab of Project Properties in the Preprocessor variables and/
> variables, but no luck. Because of this, I am not able to use heat output
> in Visual Studio. Can anyone please help?
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/

More information about the wix-users mailing list