First and foremost, you need a project reference to "ApprovalClassLibrary" in 
the consuming wixproj in order for that macro to be defined.

--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com



-----Original Message-----
From: Brian Enderle [mailto:bria...@gmail.com] 
Sent: Friday, December 27, 2013 8:22 AM
To: WiX Users
Subject: [WiX-users] Candle & pre-processor variables

I am following the example of installing a website found at 
http://blog.bartdemeyer.be/2013/10/create-an-installer-for-website-with-wix-part-1/.
 I am running into an issue when I try to use the following in the setup.build 
file used by msbuild:

  <!-- Location of published files to compile-->
  <Target Name="WIX">
    <!-- At last create an installer -->
    <Message Text="TEST: @(WixCode)"/>
    <Exec
        Command='"$(WixPath)candle.exe" -dpublishDir=$(Publish) 
-dHRActionsComponents=. @(WixCode, &apos; &apos;)'
        ContinueOnError="false"
        WorkingDirectory="." />

    <Exec
      Command='"$(WixPath)light.exe" -out "$(MsiOut)" @(WixObject, &apos; 
&apos;)'
      ContinueOnError="false"
      WorkingDirectory="." />


    <!-- A message at the end -->
    <Message Text="Install package has been created." />
  </Target>


When I try to run "msbuild /t:WIX setup.build" I get the following error:

  Product.wxs
C:\Users\benderle\Documents\Visual Studio 2012\Projects\HRActions
10.3.2\HRActionsSetupWiX\Product.wxs(67): error CNDL0
150: Undefined preprocessor variable
'$(var.ApprovalClassLibrary.TargetDir)'.
[C:\Users\benderle\Documents\Visual Studi o 2012\Projects\HRActions 
10.3.2\HRActionsSetupWiX\setup.build]
C:\Users\benderle\Documents\Visual Studio 2012\Projects\HRActions
10.3.2\HRActionsSetupWiX\setup.build(92,5): error MSB
3073: The command ""C:\Program Files (x86)\WiX Toolset v3.8\bin\candle.exe"
-dpublishDir=..\SetupFiles\publish\ -dHRAct ionsComponents=. Product.wxs 
HRActionsWeb.wxs" exited with code 150.

The "$(var.ApprovalClassLibrary.TargetDir)" is from my Product.wxs file as
follows:

  <Fragment>
    <ComponentGroup Id="BinComponents" Directory="INSTALL_FOLDER_BIN">
      <Component Id="ApprovalClassLibraryDLL">
        <File Id="ApprovalClassLibraryDLL"
              Name="ApprovalClassLibrary.dll"

Source="$(var.ApprovalClassLibrary.TargetDir)ApprovalClassLibrary.dll"
              Vital="yes"
              KeyPath="yes"/>
      </Component>

Is there something special I need to do or setup so that candle can reference 
these var's?  I have a number of projects in the solution and all use the same 
format to include what is needed in Product.wxs.


Brian

If you can't explain it simply, you don't understand it well enough.  - Albert 
Einstein
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance affects 
their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & 
PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to