Bugs item #1835720, was opened at 2007-11-21 04:08 Message generated for change (Settings changed) made by pmarcu 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: pmarcu (pmarcu) 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
