You're using SourceDir but it sounds like you should be using FileSource. FileSource is used by WiX to locate the files to be installed. Light lays out the uncompressed files as specified in the SourceDir attributes.
At runtime, Windows Installer locates the files using SourceDir and copies them to the appropriate target directory. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Didactylos Sent: 25 May 2007 19:57 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Source directory resolution in fragments 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.htm l#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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users