One thing I would check is the build configuration.

 Is the pre-processor variable defined for both Debug and Release
builds? 

Maybe it's only defined for Debug build of the Wix setup project but
your build server is building the Release config.


-----Original Message-----
From: Bair, Steve [mailto:b...@nbsin.com] 
Sent: Thursday, 19 May 2011 5:26 a.m.
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Preprocessor variable question

I am relatively new to WiX, so please excuse me if my question seems
juvenile.  Come to think of it, maybe you'd appreciate an easy question
for once!

I am using VS2010 and using a build server, so no local builds.  In my
WiX setup, I have my preprocessor variable defined as
'BinariesRoot=$(OutDir)'.  In my Product.wxs file, my code is stubbed as
such:

            <Component Id="cmpBLAHBLAHBLAH" Guid="*">
              <File Id="filBLAHBLAHBLAH" KeyPath="yes"
Source="$(var.BinariesRoot)Required.dll" />
            </Component>

...but the build soon fails with "C:\Build\Vacation
Utility\Main\127\Sources\Vacation Utility.WiX Setup\Vacation Utility.WiX
Setup\Product.wxs (18): Undefined preprocessor variable
'$(var.BinariesRoot)'."

What am I missing here?  The first installer I created works well, but I
actually have two builds now generating the same error on different
projects using the same build server.
CONFIDENTIALITY NOTICE

This e-mail contains privileged and confidential information which is
the
property of Nucor, intended only for the use of the intended
recipient(s).
Unauthorized use or disclosure of this information is prohibited. If you
are not an intended recipient, please immediately notify Nucor and
destroy
any copies of this email.  Receipt of this e-mail shall not be deemed a
waiver by Nucor of any privilege or the confidential nature of the
information.


------------------------------------------------------------------------
------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to