richardz
Posts: 5
Joined: Mon Jul 15, 2013 8:34 pm

COM Registration in 2008 R2

I have a DLL COM module which I have setup to auto register using self registration. When installing on 2008 R2 or Win 7, the registration fails, error -2147023782. I have tried running from the desktop and using msiexec at a Run As Administrator command prompt. On the same machine, if I just copy in the files and use regsvr32 from a Run As Administrator command prompt, the registration is successful. Any ideas?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: COM Registration in 2008 R2

Hello,

I'm not sure why you encountered the related behavior.
That error means A dynamic link library (DLL) initialization routine failed ,so most likely the DllMain from the .DLL fails when it is called by the Windows Installer. Some dependency might be missing.

Can you please try to use the Extract registration info from native library option from the Registration tab of the related .DLL and see if the behavior still persist? Also, the The self registration method of registering components has many drawbacks so the Extract registration info from native library is the preferred way to register a file.

Please let us know if that worked.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”