Hello, The @Source is used by the WiX compiler when creating the .msi file to read the file you want to add to the msi. WiX does not handle any [] Properties during compile time - Properties are handled by the MSI Engine during installation. To achieve your goal use a compiler variable, e.g. "$(var.PATHARGS)" - these variables can be set when starting wix and will be handled by the Preprocessor. See WiX help "Preprocessor" for more.
Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -----Original Message----- From: mahesh u [mailto:maheshu.u...@gmail.com] Sent: July 09, 2009 11:26 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Conditionally pass the property value to File Element Name, Source attributes. I am using Wix Version 2. I have the two features F1 and F2. F2 is a sub component of F1. I have a component C1 which is kept inside F1. The component C1 has a file element like this: <File Id="xyz" Name="abc.txt" Source="C:\abc.txt" /> But, the Source attribute path and Name attribute depends on the Feature which is selected. So, I tried to have a custom action to set a property PATHARGS to the path based on selection of a feature (F1 or F2) and also property FILENAME to set appropriate file based on selection of Feature (F1 or F2). Now, if I redefine File element as <File Id="xyz" Name="[FILENAME]" Source="[PATHARGS]" /> , the File element is unable to read the property value. So, my questions are: 1) Why are the above mentioned steps not working properly? 2) Is there any other way to pass property values to File Name and Source element. --thanks.. ---------------------------------------------------------------------------- -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users