mah...@bangalore wrote: > > My WiX file is something like this: > > <Component Id="a"> > <File Id ="abc" Name="abc.txt" Source="C:\abc.txt"/> > </Component> > > <Feature1> > <ComponentRef a /> > <ComponentRef b/> > <Feature2> > <ComponentRef z/> > </Feature2> > </Feature1> > > > So, my requirement is Component 'a' should be executed with file "abc.txt" > if Feature1 is marked for install and it should be executed with > Name="xyz.txt" if Feature2 is marked for install. > >
Why not do this: <Component Id="a"> <File Id ="abc" Name="abc.txt" Source="C:\abc.txt"/> </Component> <Component Id="z"> <File Id ="xyz" Name="xyz.txt" Source="C:\xyz.txt"/> </Component> <Feature1> <ComponentRef a /> <ComponentRef b/> </Feature1> <Feature2> <ComponentRef b/> <ComponentRef z/> </Feature2> or am I missing something ... ? -dmm -- View this message in context: http://n2.nabble.com/Conditionally-pass-the-property-value-to-File-Element-Name%2C-Source-%09attributes.-tp3230468p3232743.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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