I'm going to be careful here, so as to not confuse a few concepts.  Properties 
are entries in the 
Properties table, defined through the Properties element.  These are runtime 
values only.  What 
you're after is the preprocessor.  You want to define something like this:
Source='D:\Projects\solution\bin\$(var.Build)\Configuration.dll'
and have command lines like these:
candle myfile.wxs -dBuild=Debug
candle myfile.wxs -dBuild=Release

Rob

Nosherwan Ghazanfar wrote:
> Hi,
> 
> I have just started using WiX and I was wondering if there is a way to 
> define and use properties as source attribute values instead of 
> providing fully qualified file names as strings. I want to do this, 
> because once I change from the debug version to the release version I 
> will have to manually change the fully qualified paths for every file. 
> If there is any confusion regarding my question, have a look at the 
> sample below, the portion in italics is the one that my question is 
> directed at:
> 
> <Component …>
> 
> <File Id='ConfigurationDll' Name='Configuration.dll'
> 
>                     DiskId='1' Source='/D:\Projects\solution\bin\Debug\ 
> /Configuration.dll'
> 
>                     Vital='yes'/>
> 
> </Component>
> 
> Kind Regards,
> Nosh
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to