Skip to main content
Version: v3

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
NameTypeDescriptionRequired
IdGuidThe GUID that identifes the type library.Yes
AdvertiseYesNoType 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'.  
ControlYesNoType 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'.  
CostInt The cost associated with the registration of the type library in bytes. This attribute cannot be set if Advertise='no'.  
DescriptionStringThe localizable description of the type library. 
HasDiskImageYesNoType Value of 'yes' means the type library exists in a persisted form on disk. This attribute can only be set if Advertise='no'.  
HelpDirectoryStringThe identifier of the Directory element for the help directory. 
HiddenYesNoType 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'.  
LanguageIntegerThe language of the type library. This must be a non-negative integer.Yes
MajorVersionIntegerThe major version of the type library. The value should be an integer from 0 - 255. 
MinorVersionIntegerThe minor version of the type library. The value should be an integer from 0 - 255. 
ResourceIdIntegerThe resource id of a typelib. The value is appended to the end of the typelib path in the registry. 
RestrictedYesNoType 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