Dear WiX developers,

thank you very much for delivering this great piece of software.

I'd like to report the following:

Using any version from 3.0.3815 to the newest (currently 3.0.3907) I get
the following error message when trying to "dark" a msi package that has
been created using vs2005.

-----%<---------%<---------%<---------%<---------%<---------%<---------%
<---------%<---------%<---------%<----
[exec] Decompiling the Control table.
[exec] dark.exe : error DARK0001 : Unable to cast object of type
'System.Int32' to type 'System.String'.
[exec] Exception Type: System.InvalidCastException
[exec] Stack Trace:
[exec]    at Microsoft.Tools.WindowsInstallerXml.ControlRow.get_X()
[exec]    at
Microsoft.Tools.WindowsInstallerXml.Decompiler.DecompileControlTable(Tab
le table)
[exec]    at
Microsoft.Tools.WindowsInstallerXml.Decompiler.DecompileTables(Output
output)
[exec]    at
Microsoft.Tools.WindowsInstallerXml.Decompiler.Decompile(Output output)
[exec]    at Microsoft.Tools.WindowsInstallerXml.Tools.Dark.Run(String[]
args)
-----%<---------%<---------%<---------%<---------%<---------%<---------%
<---------%<---------%<---------%<----

Version 3.0.3808 is the last one that works fine for me. I assume
something got broken or I am missing something...

The problem can be traced back to the following code (ControlRow.cs):

-----%<---------%<---------%<---------%<---------%<----
public string X
{
    get { return (string)this.Fields[3].Data; }
    set { this.Fields[3].Data = value; }
}
-----%<---------%<---------%<---------%<---------%<----

As a quick fix, you might want to consider using Convert.ToString()
instead of casting from object to string all over the place... On the
other hand, I'm not quite sure, whether this might result in a slight
loss of performance.

Drop me a line if you need additional information!

Kind regards,



Daniel


**********************************************************************

The contents of this email are for the named addressee(s) only. It contains 
information which may be confidential and privileged. If you are not the 
intended recipient, please notify the sender immediately, destroy this email 
and any attachments and do not otherwise disclose or use them. Email 
transmission is not a secure method of communication and Man Investments cannot 
accept responsibility for the completeness or accuracy of this email or any 
attachments. Whilst Man Investments makes every effort to keep its network free 
from viruses, it does not accept responsibility for any computer virus which 
might be transferred by way of this email or any attachments. This email does 
not constitute a request, offer, recommendation or solicitation of any kind to 
buy, subscribe, sell or redeem any investment instruments or to perform other 
such transactions of any kind. Man Investments reserves the right to monitor, 
record and retain all electronic communications through its network t
 o ensure the integrity of its systems, for record keeping and regulatory 
purposes. 

Visit us at: www.maninvestments.com

**********************************************************************


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to