The dtf.chm
documentation, which comes with WiX, contains the following sample on how to update the binary table:
Database db = null;
View view = null;
Record rec = null;
try
{
db = new Database("product.msi", DatabaseOpenMode.Direct);
view = db.OpenView("UPDATE `Binary` SET `Data` = ? WHERE `Name` = '{0}'", binName))
rec = new Record(1);
rec.SetStream(1, binFile);
view.Execute(rec);
db.Commit();
}
finally
{
if (rec != null) rec.Close();
if (view != null) view.Close();
if (db != null) db.Close();
}