Since it is perfectly valid for the same source directory to supply files for different target directories, the usage you gave was "valid" in its own way. Further, by conditioning components, two different files with the same name may appropriately go into the same target directory. Warning about it would get in the way.
Having said that, yea, this is something we should be able to isolate from those two usages above and warn about. I doubt that the team would take it for 3.5, but feel free to submit it as a suggestion. -----Original Message----- From: John Aldridge [mailto:j...@jjdash.demon.co.uk] Sent: Friday, April 30, 2010 10:55 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Could WiX warn about this? I've just made a mistake like the following simplified example <Directory Id="SystemFolder"> <Component Id="a32.dll" Guid="*" Win64="no"> <File Id="a32.dll" Name="a.dll" Source="a32.dll" /> </Component> </Directory> <Directory Id="System64Folder"> <Component Id="a64.dll" Guid="*" Win64="yes"> <File Id="a64.dll" Name="a.dll" Source="a64.dll" /> </Component> </Directory> This is a 64 bit installer, which needs to install both the 32 and 64 bit versions of a DLL in the respective system folders. This all works fine until I come to do an administrative installation, at which point both DLLs unpack to the same location, with one overwriting the other. I know (now!) that the solution is to give a Name attribute on the two Directory elements, e.g. <Directory Id="SystemFolder" Name="SystemFolder"> : <Directory Id="System64Folder" Name="System64Folder"> : but would it be possible for WiX to warn me if I do something stupid like this? -- Cheers, John ---------------------------------------------------------------------------- -- _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users