PDA

View Full Version : File Self-Registration - COM DLL's



paulcShipCon
11-14-2005, 05:43 PM
Hi,

Our product install deals with COM dll's which I am trying to self-register. I've run into an issue where trying to self-register them fails if the dll has any dependencies which are not delay-loaded. In the cases where we are able to delay load everything they register fine in the install - however there are some dependencies which we are not able to delay load and for the dll's which have these dependencies the self-registration fails. I can register them manually using regsvr32 after the install just fine.

On the registration failure they give an error :
Error 1904.Module
dllname.dll failed to register. HRESULT -2147024770

Any advice is welcome.

Christopher Painter
11-14-2005, 05:51 PM
Any advice is welcome.

Oh those are dangerous words! :)

Seriously, Self Registration is not reccomended. The best practice is to author the COM registration data into the COM tables and let WindowsInstaller handle registration for you.

The SelfReg table doesn't have any ordering/nesting capabilities so this is why you are having registration problems.

mahi4u
02-03-2006, 06:00 AM
Use component wizard and select second radio button which will do ComServer registration and finish the wizard. Then IS will take care of Selfrgistration of the component.
Hope this will work for u.
Mahi