I had a directory structure like this (I've simplified a bit):
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR"
Name="MyProduct"
SourceName=".">
<Component Id="file.exe"
Guid="491167D5-19F9-4271-8BC5-7D16394F2ED0">
<File Id="file.exe"
Name="file.exe"
KeyPath="yes"/>
</Component>
</Directory>
</Directory>
</Directory>
It correctly found file.exe at .\SourceDir\file.exe I then refactored my
components into fragments. In one file:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR"
Name="MyProduct"
SourceName="." />
</Directory>
</Directory>
And in another file:
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Component Id="file.exe"
Guid="491167D5-19F9-4271-8BC5-7D16394F2ED0">
<File Id="file.exe"
Name="file.exe"
KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
Now light looks for file.exe at .\file.exe - and fails, obviously. All the
examples I can find show each file given an explicit source path, but this
seems unnecessarily ugly to me. How can I make it pick up the source tree
from the directory hierarchy again?
Thank you
David Barnard
--
View this message in context:
http://www.nabble.com/Source-directory-resolution-in-fragments-tf3817811.html#a10808609
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users