I usually have my WiX installer as a project inside of my Visual Studio 
solution.  When I do a build, I want the installer to be built using the Debug 
files in Debug mode, or the Release files in Release mode.

What I do to accomplish this is that I pass a pre-processor property to WiX 
named Configuration and set Configuration to either Debug or Release in the 
build settings.  Then inside of my WiX file, I use $(var.Configuration) in the 
file paths.  At compile time, WiX's preprocessor will replace 
$(var.Configuration) with either "Debug" or "Release".  This allows the same 
build script to load debug files in a debug build or release files in a release 
build.

I hope that this helps to answer your question.

----------------------------------------

From: "Charlebois, Cameron TMC" <[EMAIL PROTECTED]>
Sent: Monday, April 07, 2008 1:07 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Debug / Release version of dependencies 

I am a WIX noob so please bear with me.  
  
I setup a WIX project, made it dependant on the projects I want to 
distribute/package in my MSI. When I compile my WIX project all of the other 
projects compile and I can get the latest versions of the files. Everything 
works and is wonderful. 
  
The problem is that I usually keep my projects in a debug configuration which 
means that when I do this I get the debug versions of my projects. I need the 
release versions (there is a bunch of post-build and stuff that is very, very 
time consuming that only happens with a release version). So is there a way to 
get the release version into my WIX MSI or is this beyond WIX's scope? I 
haven't found anything in the tutorial or when Googling for changing which 
version gets built during the WIX compile of the MSI. 
  
Any help would be greatly appreciated. 
  
Thanks 
  
-Cam 
  

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to