EnsureTable Element

WiX Help

EnsureTable Element

Description

Use this element to ensure that a table appears in the installer database, even if its empty.

Windows Installer references
None
Parents
Fragment, Include, Module, Product
Inner Text
None
Children
None
Attributes
Name Type Description Required
Id String The name of the table. Yes
Remarks
This element is particularly useful for two problems that may occur while merging merge modules:
  1. The first likely problem is that in order to properly merge you need to have certain tables present prior to merging. Using this element is one way to ensure those tables are present prior to the merging.
  2. The other common problem is that a merge module has incorrect validation information about some tables. By ensuring these tables prior to merging, you can avoid this problem because the correct validation information will go into the installer database before the merge module has a chance to set it incorrectly.
See Also
Wix Schema