Menu

#1222 Dark 3.0.4123.0 InvalidCastException on Windbg 6.9.3.113 MSI

v3.0
closed
dark (136)
2012-09-15
2008-05-30
Koby Kahane
No

When I run Dark from the latest Wix v3 distribution on the Windbg MSI for x86, I receive the following error:

E:\Projects\wixtest\darktest>dark -x bins dbg_x86_6.9.3.113.msi
Microsoft (R) Windows Installer Xml Decompiler version 3.0.4123.0
Copyright (C) Microsoft Corporation. All rights reserved.

dbg_x86_6.9.3.113.msi
dark.exe : error DARK0001 : Unable to cast object of type 'System.Int32' to type
'System.String'.

Exception Type: System.InvalidCastException

Stack Trace:
at Microsoft.Tools.WindowsInstallerXml.Decompiler.DecompileRadioButtonTable(Table table)
at Microsoft.Tools.WindowsInstallerXml.Decompiler.DecompileTables(Output output)
at Microsoft.Tools.WindowsInstallerXml.Decompiler.Decompile(Output output)
at Microsoft.Tools.WindowsInstallerXml.Tools.Dark.Run(String[] args)

Discussion

  • Rob Mensching

    Rob Mensching - 2008-05-30

    Logged In: YES
    user_id=991639
    Originator: NO

    Probably a duplicate (or similar root cause) of the other bug you are working on.

     
  • Aaron Stebner

    Aaron Stebner - 2008-06-06

    Logged In: YES
    user_id=1751591
    Originator: NO

    I've looked at this a little bit already and summarized my findings so far in bug 1985998. The bottom line is that this crash will occur any time you try to decompile an MSI that uses a different schema for the RadioButton table than the one in WiX's tables.xml file.

    There was a recent fix for bug 1903337 that changed the length of the text field in the RadioButton table, and that causes some MSIs that previously decompiled correctly to no longer work. However, it also causes other MSIs (such as orca.msi) that previously would crash with this same call stack to start decompiling correctly.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 15 days (the time period specified by
    the administrator of this Tracker).

     
MongoDB Logo MongoDB