Hi Chris,

You could use Linker Variables in your source paths ( !(wix.Var) Variables )  
I've used them this way in the past without problems. The linker still tells 
you if it can't find a file, etc. The Compiler (Candle.exe) won't allow linker 
variables everywhere, but they did/do work ok in Source Paths. You'll see 
examples of Linker Varaibles in the WiX UI source code if you need them (e.g. 
src\ext\UIExtension\wixlib\) or maybe the WiX help will suffice?

At one point I had several libraries working like this, but I worried that the 
WiX team would make the Compiler disallow this, since they don't/didn't 
advertise that you can use linker variables like this. So I weaned my builds 
away from it. Also I didn't want to maintain yet another WiX source code 
variant, or get stuck again on an old version of WiX.

I can't think why they would object to using Linker variables this way?

Hope this helps.

Regards

 

Martin Lavelle

 

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

 

I've noticed a couple things I wonder about: Let say I use: 
Source="$(env.WINDIR)\notepad.exe  The wixlib gets formatted as 
C:\WINDOWS\NOTEPAD.EXE. If I type the file name wrong, it still compiles with 
no errors. It's not until I consume the library in a merge module that it 
reports a failure. Our current build process has dozens of service family 
builds. I plan on implemnting fragments and libraries in these builds and then 
consuming the libraries in downstream builds. I'm concerned that: 

1) Incorrect file paths will manifest themselves too late in the process. 

2) When using a different variable like $(env.INSTALLFILES) if the directory 
path is different for different builds the wixlib is already formatted and the 
files won't line up.

Does anyone have any thoughts on this?

 

_________________________________________________________________
Windows Liveā„¢: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to