Fixed it. There were 2 issues, the File/@Source should be File/@Name as
Peter's suggested but also ComponentGroup/@Source needs a trailing \ on
the path e.g.:
    Source="$(var.SolutionDir)output\"


Having a trailing slash doesn't match directory use anywhere else so I
think this is probably a bug.

Neil


>I am trying to use the ComponentGroup/@Source to set the source path for
>some components but it is not working, the syntax I am using is:
>
>    <ComponentGroup Id="Test" Directory="APPLICATIONFOLDER"
>Source="$(var.SolutionDir)output">
>      <Component>
>        <File Source="Dummy.exe" />
>      </Component>
>    </ComponentGroup>
>
>I would expect that to find Dummy.exe in the path
>"$(var.SolutionDir)output" but it fails with a the error:
>LGHT0103: The system cannot find the file 'Dummy.exe'
>
>If I change the File element to the following it works ok:
><File Source="="$(var.SolutionDir)output\Dummy.exe" />
>Even if I change the $(var.SolutionDir) to a full path it still fails.
>
>Should this work?
>
>Neil
>
>Neil Sleightholm
>X2 Systems Limited
>n...@x2systems.com<mailto:n...@x2systems.com>
>
>--------------------------------------------------------------------------
>----
>Live Security Virtual Conference
>Exclusive live event will cover all the ways today's security and
>threat landscape has changed and how IT managers can respond. Discussions
>will include endpoint security, mobile security and the latest in malware
>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>_______________________________________________
>WiX-users mailing list
>WiX-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to