Outlook 2007 Install Errors with 0x80004005

Add-in Express™ Support Service
That's what is more important than anything else

Outlook 2007 Install Errors with 0x80004005
 
Paul McIntyre


Guest


Hi Guys,

Just wondering where I can start looking as to why my Add-In doesn't register in Outlook 2007.

When I go to run RegSvr32 from the command line my registration fails with the generic 0x80004005 code.

The machine is XP.

The registration is working on Outlook 2003 and Vista fine.

Is there some sort of flag or something that I must set for 2007?

Any initial guidance would be appreciated. Using D2007 and Add-in Express
Version 4.3 (build 406 Public Release)

Cheers,
Paul
Posted 20 Apr, 2010 02:22:43 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hi Paul,

It is possible that you get an exception when the add-in module is created. Also, please check if the user may write to the registry; say, your add-in has RegisterForAllUsers=True and the user registering the add-in is a standard user.


Andrei Smolin
Add-in Express Team Leader
Posted 20 Apr, 2010 03:56:10 Top
Paul McIntyre


Guest


The RegisterForAllUsers=False.

I have just installed Outlook2007 on the Vista Machine and the the Dll was included as part of the upgrade and everything worked fine.

I have now unregistered the dll (which failed) and now it won't re-install...
Posted 20 Apr, 2010 20:25:35 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hi Paul,

Paul McIntyre writes:
I have now unregistered the dll (which failed) and now it won't re-install...


Not sure that I understand you. Does the DLL register fine? Does the DLL falis to unregister? What do you mean by "it won't re-install"?

Can you send us your project for testing? If yes, please find the support e-mail address in readme.txt. Please make sure your e-mail contains a link to this topic.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Apr, 2010 04:57:11 Top
Paul McIntyre


Guest


Hi Andrei,

Project is on it's way. I have just tried a fresh install under Win 7 Machine with Outlook 2007 and have encountered the same issue where the DLL will not register and throws generic code as above.

I have now received it on most platforms with the exception of Vista.

It does however seem quite random. The machines that it failed on when I first raised this, eventually installed the DLL OK. So I am at a loss as to what it is. I have found that the Properties page is quite fiddly. If I change it too much I find that this is what often causes issues with registering and unregistering the dll.

Cheers,
Paul
Posted 14 May, 2010 00:33:48 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Paul,

I cannot build and debug your project because you use the third-party components that I don?Â?Ð?ét have.

But I see that you use the OnCreate/OnDestroy events in your add-in module. Please try to move that code to the OnAddinInitialize and OnAddinFinalize event handlers respectively and retest your project.
Posted 14 May, 2010 05:25:46 Top
George Spears




Posts: 79
Joined: 2010-05-06
Paul,

I have been fighting this issue myself, although in my case, I can install AddIn Expres fine, but I cannot install my plug-in on another machine...

The error 0x80004005 can be caused for several reasons...
1). Insufficient permission to write to the registry
2). A corrupt registry - check by runnning sfc /scannow
3). The registry may have hit a size limit. Certain apps use a lot of registry entries, and there is a default max on this.
4). Not installing as Administrator
5). On startup, having DB components connected automatically.

Good luck,
George Spears
Posted 16 May, 2010 19:54:35 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Paul and George,

George, thank you for your help.

Paul, have you managed to fix the error?
Posted 18 May, 2010 07:46:28 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
2 All,

I've re-opened the thread to add the following info from Paul:

Hi Dmitry,

I tried to post back to this thread but it has been locked.

Your comments re:
..."But I see that you use the OnCreate/OnDestroy events in your add-in module. Please try to move that code to the OnAddinInitialize and OnAddinFinalize event handlers respectively and retest your project. "...

have corrected the issues. Could you please add to that Forum in case any others experience that issue.

Apologies it has taken a while to come back to you.

Thanks and cheers,
Paul


Thank you, Paul!


Andrei Smolin
Add-in Express Team Leader
Posted 29 Jun, 2010 02:13:42 Top