Hi, This is expected behaviour, I have added a registry key with an keypath="yes" in components like this to assuage the ICE gods.
Some people also put a <CreateFolder/> element in the component instead but I like to be very explicit on what my keypaths are. Dave -----Original Message----- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: 31 March 2010 11:06 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Bug with components which contain only XMLConfigelements? Posting this in case anyone else runs into this & because I'm not sure if this is a bug or expected behaviour. I'm updating a plug-in installer to work with a new product which will be imminently released. After (at least) 4 years of complaining the developers of said product have caved in & finally moved from using a .ini file installed alongside their product (under ProgramFilesFolder which is lots of fun on UAC enabled systems) to supporting .addin files under CommonAppDataFolder. I have 3 new components, one places the .addin file (.addin files are simple XML) in the right place, the other 2 modify a path within it using XMLConfig. The components look very much like the following: <DirectoryRef Id="_2011"> <Component Id="_2011Addin" DiskId="1" Guid="A-GUID"> <File Id="IESVE.addin" Source="..\..\..\bin_release\IESVE.addin" /> </Component> <Component Id="SetAddinPathx86" DiskId="1" Guid="ANOTHER-GUID"> <util:XmlConfig Id="SetIESVEaddinPathx86" File="[#IESVE.addin]" Action="create" On="install" ElementPath="/RevitAddIns/AddIn/Assembly" Node="value" Value="[IESToolbar]" /> </Component> <Component Id="SetAddinPathx64" DiskId="1" Guid="YET-ANOTHER-GUID"> <util:XmlConfig Id="SetIESVEaddinPathx64" File="[#IESVE.addin]" Action="create" On="install" ElementPath="/RevitAddIns/AddIn/Assembly" Node="value" Value="[IESToolbar_x64]" /> </Component> </DirectoryRef> When I build this I get 2 errors from ICE18, one for each of the components containing XMLConfig Elements. error LGHT0204: ICE18: KeyPath for Component: 'SetAddinPathx86' is Directory: '_2011'. The Directory/Component pair must be listed in the CreateFolders table. error LGHT0204: ICE18: KeyPath for Component: 'SetAddinPathx64' is Directory: '_2011'. The Directory/Component pair must be listed in the CreateFolders table. Looking at the MSI in InstEd! those 2 components do not have KeyPaths set. I'm using WiX v3.0.5419.0 & I've also run the MSI through the ICE tests using the darice.cub from the v7.0 Windows Platform SDK which gives the same error (as expected). I can work around this simply by adding a RegistryValue to each component & setting it as the KeyPath for those components but does anyone know if this is expected behaviour or a bug with these types of components? If it's a bug let me know & I'll submit it to the tracker on SourceForge. Cheers, Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer ------------------------------------------------------------------------ ------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users </pre> <BR style="font-size:4px;"> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial" size="2" "><a href = "http://www.sdl.com" style="color:005740; font-weight: bold">www.sdl.com</a> <BR> <BR> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users