User cannot install my Outlook add-in

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

User cannot install my Outlook add-in
 
Kevin Moore




Posts: 93
Joined: 2008-12-03
I am having an issue that some users cannot install my Outlook add-in. For background, the add-in installs via a VS.net Setup Project and works without issue on my Win XP, Vista and Windows 7 (32) test environments.

When some users go to install the system, they get a message from the Installer that the "Installation Incomplete".

I've logged the msi and come up with the following snippet:

MSI (s) (18:18) [18:29:20:649]: Executing op: RegAddValue(Name=NonDefaultStoreScript,Value=#1,)
WriteRegistryValues: Key: \Software\Policies\Microsoft\Office\14.0\Outlook\Security, Name: NonDefaultStoreScript, Value: #1
MSI (s) (18:18) [18:29:20:649]: Executing op: ActionStart(Name=_F851CE9F_6BF4_44BC_A0EF_B3C10C052F9F,,)
Action 18:29:20: _F851CE9F_6BF4_44BC_A0EF_B3C10C052F9F.
MSI (s) (18:18) [18:29:20:650]: Executing op: CustomActionSchedule(Action=_F851CE9F_6BF4_44BC_A0EF_B3C10C052F9F,ActionType=3345,Source=C:\Program Files\Moore Software Solutions Inc\MissingLink Project Management\adxloader.dll,Target=DllUnregister,)
MSI (s) (18:18) [18:29:20:650]: Executing op: ActionStart(Name=_6B2AC2DF_3761_4B06_BBB7_B8E103596742,,)
Action 18:29:20: _6B2AC2DF_3761_4B06_BBB7_B8E103596742.
MSI (s) (18:18) [18:29:20:650]: Executing op: CustomActionSchedule(Action=_6B2AC2DF_3761_4B06_BBB7_B8E103596742,ActionType=3089,Source=C:\Program Files\Moore Software Solutions Inc\MissingLink Project Management\adxloader.dll,Target=DllRegister,)
MSI (s) (18:E0) [18:29:20:653]: Invoking remote custom action. DLL: C:\Program Files\Moore Software Solutions Inc\MissingLink Project Management\adxloader.dll, Entrypoint: DllRegister
MSI (s) (18:90) [18:29:20:654]: Generating random cookie.
MSI (s) (18:90) [18:29:20:666]: Created Custom Action Server with PID 4904 (0x1328).
MSI (s) (18:D8) [18:29:22:709]: Running as a service.
MSI (s) (18:D8) [18:29:22:713]: Hello, I'm your 32bit Elevated custom action server.
Action ended 18:29:34: InstallExecute. Return value 3.
MSI (s) (18:18) [18:29:34:855]: User policy value 'DisableRollback' is 0
MSI (s) (18:18) [18:29:34:855]: Machine policy value 'DisableRollback' is 0
MSI (s) (18:18) [18:29:34:860]: Executing op:

I'm assuming it is something to do with the DLLRegister of the adxloader.dll file but I cannot figure out what is happening.

Can anyone help with this issue?

Kevin
Posted 30 Jun, 2010 17:45:17 Top
Andrei Smolin


Add-in Express team


Posts: 17239
Joined: 2006-05-11
Hi Kevin,

Do those systems have Office 2010 64-bit installed? Do you have an Add-in Express log describing the same situation? Typically, the log is located in [My ]Documents\Add-in Express\adxloader.log.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Jul, 2010 02:23:36 Top
ManSys




Posts: 24
Joined: 2010-06-14
Andrei / Kevin,

I have a similar problem! I have an Outlook AddIn that won't install, even on my PC (I have to register the addin via the Register ADX option in VS2008).

When I install, everything goes ok but the addin doesn't even appear in the users Outlook (2007) not to mention a lack of buttons! The Add In Ex log ends with "16:07:49 12300 Searching for static methods that contain the 'ComRegisterFunction' attribute."

I am ready to deploy but can't. I'm using Add-In Express 2010.

Please help.

Neil.

Neil Hoskins
DDE - Dinosaur Developer Extraordinaire.
Posted 02 Jul, 2010 10:20:20 Top
ManSys




Posts: 24
Joined: 2010-06-14
Forgot to mention, it all worked fine in Add-In Express 2009! It's something in the Setup deployment for sure, just can't figure out what.

Neil Hoskins
DDE - Dinosaur Developer Extraordinaire.
Posted 02 Jul, 2010 10:21:41 Top
ManSys




Posts: 24
Joined: 2010-06-14
Andrei - more info for you, when I look at the ADXRegistrator.log, I see this at the end;

Application Domain: C:\Program Files\ManSys Limited\ieSM_Outlook_AddIn\
Assembly Codebase: file:///C:/Program Files/ManSys Limited/ieSM_Outlook_AddIn/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.0.3043.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.0.3043.2005
Assembly Build Date: 01/05/2008 02:06:50

Exception Source: AddinExpress.MSO.2005
Exception Type: System.NullReferenceException
Exception Message: Object reference not set to an instance of an object.
Exception Target Site: UnregisterManagedType

---- Stack Trace ----
AddinExpress.Projects.Common.Utilities.UnregisterManagedType(type As Type, strAsmVersion As String, targetHive As ADXTargetRegistryHive)
AddinExpress.MSO.2005.DLL: N 0048 (0x30) IL
AddinExpress.Projects.Common.Utilities.UnregisterType(t As Type, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callUnregMethod As Boolean)
AddinExpress.MSO.2005.DLL: N 0142 (0x8E) IL
AddinExpress.Projects.Common.Utilities.UnregisterAssembly(assembly As Assembly, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.MSO.2005.DLL: N 0038 (0x26) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
AddinExpress.MSO.2005.DLL: N 0055 (0x37) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.MSO.2005.DLL: N 0463 (0x1CF) IL



15:46:12 The add-in registration process is completed with HRESULT = -2147467259.

Neil Hoskins
DDE - Dinosaur Developer Extraordinaire.
Posted 02 Jul, 2010 10:26:01 Top
Andrei Smolin


Add-in Express team


Posts: 17239
Joined: 2006-05-11
Neil,

Please check Modifying an existing setup project to support Office 2010, 32-bit and 64-bit, in Add-in Express 2010.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 02 Jul, 2010 10:27:34 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Neil.

Did you add any custom code to the add-in constructor?
Posted 02 Jul, 2010 10:48:11 Top
ManSys




Posts: 24
Joined: 2010-06-14
Sergy,

No I didn't, but I've fixed the issue by adding references to OL.2005 DLL's and recompiling the setup (I found another forum talking about a missing file).

I then had the issue where the AddIn wouldn't load because of certificate conflicts! So, I re-signed the ADXLoaded.dll without certificate and voila, it worked perfect!

So, after scaring everyone in the office by jumping up and down wildly, I'm a happy bunny.

Thanks.

Neil.

Neil Hoskins
DDE - Dinosaur Developer Extraordinaire.
Posted 02 Jul, 2010 11:24:35 Top
Andrei Smolin


Add-in Express team


Posts: 17239
Joined: 2006-05-11
))))))))

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 02 Jul, 2010 11:29:37 Top
Kevin Moore




Posts: 93
Joined: 2008-12-03
Hi,

Sorry for not updating in a while, but I found the link above on my own and I am working on changing the setup project.

Things seem to be a bit off after I migrated to Add In Express 2010 but since I hadn't changed my setup project, because I didn't know I needed to, I think that is what the problem was.

I have been working on changing and testing my setup project and I'll post later with some results.
Posted 03 Jul, 2010 12:58:54 Top