Bugs item #1835720, was opened at 2007-11-21 13:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1835720&group_id=105970
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: light Group: v3.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Instyler Software (instyler) Assigned to: Nobody/Anonymous (nobody) Summary: Executing wix linker multiple times fails Initial Comment: This is a little bit complicated.) We are trying to use the Wix.Compiler / Wix.Linker classes directly by referencing wix.dll in our project. We basically reproduced the way candle and light are working. It works fine except when using the WixUI Extension and trying to run the Linker multiple times. We modified the original light.exe to compile a .msi twice without re- running light.exe (by using a goto at the end of light's main() and clearing all dictionaries) - the error also occurs. When running the compilation procedure the first time, the following exceptions are logged: A first chance exception of type 'Microsoft.Tools.WindowsInstallerXml.DuplicateSymbolsException' occurred in wix.dll A first chance exception of type 'System.InvalidCastException' occurred in wix.dll (Just look at the debug output of a light compilation using parameter "test.wixobj -ext WixUIExtension -cultures:en-us") Now when running light the second time, it breaks where the linker is trying to add the Sequences to a SectionCollection dictionary. I'm not sure how to fix this, but it seems to be a problem when the WixUIExtension gets loaded for the second time. As you know .NET cannot unload assemblies, so it will not load the extension a second time but reuse the already loaded one. Thank you for looking into this. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1835720&group_id=105970 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
