The location of the source files to be included in my installer is not
hard-coded in my .wxs script, but rather a property is used that must be
defined when invoking candle.  The .wxs file looks something like this:
        <File Id='MyApp' Name='MyApp.exe'
Source='$(var.SourceRoot)\MyApp.exe' Vital='yes'> </File>

During testing I just use the command line, and the SourceRoot property
now needs to be defined in the command line when running candle:
        candle -dSourceRoot=c:\MyApp\Publish *.wxs

In my real build environment (on the build machine), we are using
cruisecontrol.net and nant.  This knows the location of where the build
products are and thus passes in the location in the SourceRoot property
for the automated build.  (I'm just calling 'exec' from NAnt to run
candle and light).

I would think you should be able to do something similar with msbuild
and pass in a parameter that defines where your build products are that
need to be included in your installer.

Beth

---------------------------------------------------------------------------
This email and any files transmitted with it are confidential & proprietary 
to Systems and Software Enterprises, Inc. (dba IMS).  This information is 
intended solely for the use of the individual or entity to which it is 
addressed. Access or transmittal of the information contained in this e-mail, 
in full or in part, to any other organization or persons is not authorized.
---------------------------------------------------------------------------

-----Original Message-----
From: Pankaj Agrawal (Infosys Technologies Ltd)
[mailto:v-pa...@microsoft.com] 
Sent: Wednesday, February 11, 2009 12:55 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Need help while integrating with MSBuild

Hi,

I have created a WiX file and I have hardcoded file path in it.
Now during daily build the path is getting changed and I have to
integrate this wix file with daily build.
Here we are dropping the bits into binary and copying them to some other
folder (which will be changed with every build). I have to pass the
folder location to my wix file.

My problem is if I am defining variables in my wix file then how I am
going to pass those variables to my WiX file while running the candle
and light exe's.

Thanks,
Pankaj


------------------------------------------------------------------------
------
Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and
code to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to