Windows Installer error 1911: Could not register type library for file
|Article:TECH24241|||||Created: 2005-09-01|||||Updated: 2005-10-06|||||Article URL http://www.symantec.com/docs/TECH24241|
1911- I could not register the Typelib file.
This generally occurs when the file specified in the error message is in the TypeLib table, but the RegisterTypeLibraries action cannot register the file.
Type library files contain type library information for various other files to be installed on the machine. In most situations, this information is only useful for applications that link to development objects such as COM servers.
If you do not need to register your type library file, navigate to the Setup Editor, select the Tables tab, then select the TypeLib table. Locate the file indicated in the error message. Right-click on the row containing this file and select Delete Row(s). Save, compile, test, and run. The error message should now be gone.
If you need type library information for a specific application to be available to Visual Basic or other programming/scripting language programs in order to interface with the object easily, then you need to clear the row from the TypeLib table as above and register the type library file manually. To do this, use a custom action to call the Windows utility Regtlib.exe and pass the name of the type library as an argument.
The best method for calling this custom action is to use the "Execute Program from Installation" custom action sequenced after the InstallFinalize action in the Execute Immediate sequence. By using this type of custom action, where Regtlib.exe will be stored in the binary stream, you will ensure that the Regtlib.exe utility is available to each target machine.
On the Details tab of the Execute Program from Installation dialog, enter the following information:
- Custom Action Name: This can be any name you wish; use it to self-document the installation.
- Executable File: The location of Regtlib.exe on the development machine. When the installation is compiled, Regtlib.exe will be incorporated into the binary stream.
- Command Line Arguments: any command line switches, and the path to the type library file.
It is not necessary to change any options on the Properties tab.
Please consult Microsoft for information about the Regtlib.exe utility.
Article URL http://www.symantec.com/docs/TECH24241