Skip to content

TypeLib element

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.

Attributes

Advertise

yesno

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

yesno

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

integer

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

yesno

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.

HelpSubirectory

string

This attribute defines one or more directories below the directory referenced by the HelpDirectory attribute for the typelib’s help directory.

Hidden

yesno

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’.

Id

Guid required

The GUID that identifes the type library.

Language

Integer required

The language of the type library. This must be a non-negative integer.

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

yesno

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’.

Children

Parents

Windows Installer references