I have added our TypeLibrary file in the COM (Project Details) section of Advanced Installer.
All seems to go through fine without any problems.
Our application (not the TLB) has the following line of code in the source (C++) to see if the Type Library is registered on the system:
Code: Select all
BOOL bTL = AfxOleRegisterTypeLib( AfxGetInstanceHandle(), _tlid, _T("sevensoft.TLB"), NULL );
if( !bTL ) {
if( IsTypeLibRegistered() != 1 ) {
AfxMessageBox("Type Library is not loaded! You may need to run again as an Administrator") ;
}
}
The question is why is the TLB not registering during install. Its a fairly old TLB file, and this issue seems to only occur on Win7 or Vista machines. We have tried rolling the app out as a MSI through group policy but no joy, and this is a massive problem for us, as it defeats the object of rolling out an MSI, if a standard user cant use the software because a component isn't registered!
Any help on this one would be appreciated as we are truly stuck!
FOLLOW US
Get the latest news in Application Packaging