Sorry, there was a copy/paste failure in my posting: The directories must be <Directory Id='ProgramFilesFolder.Compiler' Name='Compiler'> and <Directory Id='ProgramFilesFolder.Target' Name='Target'> In this case there shouldn't be any error. However, without the merge module everything works fine and it shouldn't make a difference whether there is any merge module or not.
I've some more information: MSDN says an identifier can contain a dot. However, for the directory IDs I replaced "." by "_" and everything works fine. <Directory Id='ProgramFilesFolder_Compiler' Name='Compiler'> <Directory Id='ProgramFilesFolder_Target' Name='Target'> Seems there's a bug somewhere that only appears if I add a merge module to my installation. ----- Original Message ----- From: "Rob Mensching" <rob.mensch...@microsoft.com> To: "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Sent: Wednesday, January 07, 2009 6:24 PM Subject: Re: [WiX-users] Installing different files with same name > Based on the authoring below, the error message seems completely correct. > What does a Merge Module have to do with this? > > -----Original Message----- > From: Olaf (SourceForge) [mailto:sf.o...@e-ypsilon.de] > Sent: Wednesday, January 07, 2009 02:53 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Installing different files with same name > > Hello, > > I'm trying to install two files with the same name ("Null.cfg") with > different source and target directory. I can build the MSI and the > application can be installed and works fine. However after adding a merge > module I get the folling error: > > "error LGHT0204: ICE30: The target file 'Null.cfg' is installed in > '[ProgramFilesFolder]' by two different components on an SFN system: > 'Compiler_Null.1' and 'Target_Null.1'. This breaks component reference > counting" > > The merge module doesn't contain neither the file Null.cfg nor one of the > componen names. So what could be the problem? > > Best Regards > Olaf > > > <Directory Id='ProgramFilesFolder.Target' Name='Target'> > <Component Id='Compiler_Null.1' > Guid='7C6AC106-D8D1-41D5-9FC7-2F9A053C1956'> > <File Id='Compiler_Null.cfg.1' Name='Null.cfg' KeyPath='yes' > Source ='..\..\Target\Program > Files\Configuration\ConfigFiles\Compiler\Null.cfg'/> > </Component> > </Directory>^ > > <Directory Id='ProgramFilesFolder.Target' Name='Target'> > <Component Id='Target_Null.1' > Guid='8CFCF767-5271-4EDC-B4D1-1F1494244DCF'> > <File Id='Target_Null.cfg.1' Name='Null.cfg' KeyPath='yes' > Source ='..\..\Target\Program > Files\Configuration\ConfigFiles\Target\Null.cfg'/> > </Component> > </Directory> > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users