Mainly because I'm new to wix and didn't know about the -b switch to light. Having now read about it, I can see that its use would helpful such that my wix installation script is not so tightly coupled to my build script. I will have to file this away for the future.
Thanks for the tip, Beth -----Original Message----- From: Rob Mensching [mailto:r...@wixtoolset.org] Sent: Friday, February 13, 2009 9:49 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Need help while integrating with MSBuild Interesting. Why not use "SourceDir" as the root for your file and use the -b switch to light. That way your compiled .wixobj files don't have hard coded paths in them (like they would below using the preprocessor). Might make some scenarios easier later... like using .wixobjs on different machines with different paths to their files. -----Original Message----- From: Beth Hechanova [mailto:bhechan...@imsco-us.com] Sent: Thursday, February 12, 2009 10:43 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Need help while integrating with MSBuild 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 ------------------------------------------------------------------------ ------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users