TypeLib Element

WiX Toolset

TypeLib Element

Description
Register a type library (TypeLib). Please note that in order to properly use this non-advertised, you will need use this element with Advertise='no' and also author the appropriate child Interface elements by extracting them from the type library itself.
Windows Installer references
TypeLib Table, Registry Table
Parents
Component, File
Inner Text
None
Children
Choice of elements (min: 0, max: unbounded)
Attributes
Name Type Description Required
Id Guid The GUID that identifes the type library. Yes
Advertise YesNoType Value of 'yes' will create a row in the TypeLib table. Value of 'no' will create rows in the Registry table. The default value is 'no'.  
Control YesNoType Value of 'yes' means the type library describes controls, and should not be displayed in type browsers intended for nonvisual objects. This attribute can only be set if Advertise='no'.  
Cost Int The cost associated with the registration of the type library in bytes. This attribute cannot be set if Advertise='no'.  
Description String The localizable description of the type library.  
HasDiskImage YesNoType Value of 'yes' means the type library exists in a persisted form on disk. This attribute can only be set if Advertise='no'.  
HelpDirectory String The identifier of the Directory element for the help directory.  
Hidden YesNoType Value of 'yes' means the type library should not be displayed to users, although its use is not restricted. Should be used by controls. Hosts should create a new type library that wraps the control with extended properties. This attribute can only be set if Advertise='no'.  
Language Integer The language of the type library. This must be a non-negative integer. Yes
MajorVersion Integer The major version of the type library. The value should be an integer from 0 - 255.  
MinorVersion Integer The minor version of the type library. The value should be an integer from 0 - 255.  
ResourceId Integer The resource id of a typelib. The value is appended to the end of the typelib path in the registry.  
Restricted YesNoType Value of 'yes' means the type library is restricted, and should not be displayed to users. This attribute can only be set if Advertise='no'.  
See Also
Wix Schema