Light doesn't support custom tables with binary columns. You can use a foreign key reference to the Binary table instead.
On Sun, Oct 24, 2010 at 12:36 AM, Eric Schultz <wwaha...@gmail.com> wrote: > I'm getting an error from light when I build a wix project that has a > custom > table with a binary column. The error message returned is as follows: > > light.exe : error LGHT0001 : Function failed during execution > > Exception Type: System.ComponentModel.Win32Exception > > Stack Trace: > at Microsoft.Tools.WindowsInstallerXml.Msi.Database.Commit() > at Microsoft.Tools.WindowsInstallerXml.Binder.GenerateDatabase(Output > output, String databaseFile, Boolean keepAddedColumns, Boolean > useSubdirectory) > at Microsoft.Tools.WindowsInstallerXml.Binder.BindDatabase(Output output, > String databaseFile) > at Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output output, String > file) > at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args) > > This only happens when I have a custom table with a binary column in it. > Also if I have a row where the cell for the binary column is null, the > error > doesn't occur. I've tried multiple files and absolute and relative paths > and > nothing seems to make any difference. The relevant Wix code is included > below. Does anyone have any suggestions? > > Eric > > <CustomTable Id="CO_PACKAGE_PROPERTIES"> > <Column Id="package_id" Nullable="no" Category="Guid" Type="string" > PrimaryKey="yes" /> > <Column Id="display_name" Nullable="yes" Type="string" Category="Text" > /> > <Column Id="description" Nullable="yes" Type="string" Category="Text" > /> > <Column Id="icon" Nullable="yes" Type="binary" Category="Binary" /> > <Column Id="publish_date" Nullable="yes" Type="string" Category="Text" > /> > <Column Id="author_version" Nullable="yes" Type="string" > Category="Text" /> > <Row> > <Data > Column="package_id">{332EA1F2-2BF2-E0CF-4FF2-5872A34A403B}</Data> > <Data Column="display_name">Liba</Data> > <Data Column="description">A Sample Package</Data> > <Data Column="icon">coapp-bootstrap.exe</Data> > <Data Column="publish_date">2010-06-10</Data> > <Data Column="author_version">Two</Data> > </Row> > </CustomTable> > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users