Hello everyone, Hello Rob! (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. Best regards, Sebastian Brand Instyler Software - http://www.instyler.com ------------------------------------------------------------------------- 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
