Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dark /a doesn't work on orca.msi #25

Closed
wixbot opened this issue Apr 14, 2004 · 3 comments
Closed

dark /a doesn't work on orca.msi #25

wixbot opened this issue Apr 14, 2004 · 3 comments
Labels

Comments

@wixbot
Copy link

wixbot commented Apr 14, 2004

After turning on dark’s support for the /a switch, running
dark on the orca.msi from MSI 3.0 beta2 results in the
following error:

Microsoft® MSI to Wix 2.0 Decompiler Version 0.1
Copyright © Microsoft Corporation 2003. All rights
reserved.

orca.msi
dark.exe : fatal error DARK0000: Failed to get field count

Stack Trace:
at
Microsoft.Tools.WindowsInstallerXml.Msi.Record.GetFieldC
ount()
at
Microsoft.Tools.WindowsInstallerXml.Decompiler.ProcessO
therTables(Hashtable coveredTables)
at
Microsoft.Tools.WindowsInstallerXml.Decompiler.ProcessPr
oductElement(XmlWriter writer, Boolean
writeDocumentElements)
at
Microsoft.Tools.WindowsInstallerXml.Decompiler.Decompil
e(String inputPath, String outputPath)
at
Microsoft.Tools.WindowsInstallerXml.Tools.DarkMain..ctor
(String[] args)
at Microsoft.Tools.WindowsInstallerXml.Tools.Dark.Main
(String[] args)

This message happens as dark is processing the
_MergeErrors table within Orca. I’ve seen this error on a
bunch of MSI’s and will try to get more information about
it.

Originally opened by rezand from http://sourceforge.net/p/wix/bugs/20/

@wixbot
Copy link
Author

wixbot commented Sep 15, 2012

This appeared to be just a problem with GetFieldCount having
a typo in its return test:

    public int GetFieldCount()
    {
        int size = MsiInterop.MsiRecordGetFieldCount

(this.handle);
if (0 < size)
{
throw new
System.Runtime.InteropServices.ExternalException("Failed to
get field count");
}
....
}

Should probably use "if (0 > size)" instead.

@wixbot
Copy link
Author

wixbot commented Sep 15, 2012

GetFieldCount() in Record was confused, logic was backwards.

@wixbot wixbot added the bug label Dec 20, 2015
@wixbot wixbot closed this as completed Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@wixbot and others