I have a 32-bit VB 6 dll that runs as a COM add-in to a Microsoft Office application. It's been running for years, including on Win 7 and 8 systems and with all versions of Office since 2003. However, on some systems the dll cannot be registered.
When my installer attempts to register the dll, it fails with this message:
Module xyz.dll failed to register. HRESULT -2147467259. Contact your support personnel.
When I try to register the dll from the command line by running regsvr32, I receive this message:
The module "xyz.dll" was loaded but the call to DllRegisterServer failed with error code 0x80004005.
I've researched both error codes and have tried all of the following with no change:
1) Run regsvr32 from C:\Windows\SysWOW64 instead of from C:\Windows\System32
2) Run regsvr32 from an elevated command prompt
3) Turn off UAC
4) Recompile dll after updating references to a newer version of Office (I updated to Office 2010)