I run dark against my MSI, and I get an exception.  Ive tracked it down a
bit, and I find that if I delete particular ros in the AppSearch table, I
can get dark to work.  Please find an attached MSI that demonstrates the
problem.  Its 4Mg - Sorry its so big!!
Heres the output from dark

C:\junk>dark junk.msi junk.wxs
Microsoft (R) Windows Installer Xml Decompiler Version 3.0.3621.0
Copyright (C) Microsoft Corporation 2003. All rights reserved.


junk.msi
C:\junk\junk.msi : warning DARK1060 : The _InstallValidate table is being
decomp
ble.
C:\junk\junk.msi : warning DARK1060 : The _Required table is being
decompiled as
C:\junk\junk.msi : warning DARK1060 : The _Sequence table is being
decompiled as
dark.exe : warning DARK1065 : The AdvtUISequence table is not supported by
the W
it has been deprecated by the Windows Installer team.  Any information in
this t
ut of the decompiled output.
C:\junk\junk.msi : warning DARK1060 : The Cabs table is being decompiled as
a cu
C:\junk\junk.msi : warning DARK1066 : The PatchPackage table is not directly
sup
oolset because it belongs in a patch (msp) file.  This table can be
indirectly c
patch creation (pcp) file using WiX, then using PatchWiz to create a patch
(msp)
tion in this table will be left out of the decompiled output.
dark.exe : error DARK0001 : Object reference not set to an instance of an
object

Exception Type: System.NullReferenceException

Stack Trace:
   at
Microsoft.Tools.WindowsInstallerXml.Decompiler.FinalizeSearchTables(TableC
   at
Microsoft.Tools.WindowsInstallerXml.Decompiler.FinalizeDecompile(TableColl
   at Microsoft.Tools.WindowsInstallerXml.Decompiler.Decompile(Output
output)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Dark.Run(String[] args)

Unhandled Exception: System.NullReferenceException: Object reference not set
to
bject.
   at
Microsoft.Tools.WindowsInstallerXml.Decompiler.FinalizeSearchTables(TableC
   at
Microsoft.Tools.WindowsInstallerXml.Decompiler.FinalizeDecompile(TableColl
   at Microsoft.Tools.WindowsInstallerXml.Decompiler.Decompile(Output
output)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Dark.Run(String[] args)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Dark.Main(String[] args)


If I open the MSI with Orca, then delete a row from the AppSearch table
        LABELINKINSTALLDIR      AppFile5
then all is well.

I suspect that the problem might be somehow related to the fact that
AppFile5 refers to a second row in the DrLocator table:

AppFile5                        AppFile5SigFile                 2
AppFile5SigFile         [ProgramFilesFolder]    2
http://www.nabble.com/file/p14554976/junk.msi junk.msi 
-- 
View this message in context: 
http://www.nabble.com/Dark---NullReferenceException-due-to-rows-in-the-AppSearch-table-tp14554976p14554976.html
Sent from the wix-users mailing list archive at Nabble.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-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to