How do you clean install an Outlook plugin?

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

How do you clean install an Outlook plugin?
 
developer_cp




Posts: 48
Joined: 2016-10-28
I had my Outlook plugin installed, and while doing some testing, I had it disabled under "Slow and Disabled COM Add-ins".
Then I went and uninstall and try to reinstall the plugin again.

But no matter what I do, it won't register itself with Outlook anymore.
I followed this link and cleaned up the add-in entries: https://www.outlook-apps.com/inactive-outlook-add-ins/

Then I reinstalled the add-in, saw the entries being added back into the registry, but still, Outlook won't see or load the add-in.


I've went to Options > Add-ins, in that last I don't see my add-in being installed (eventhough it did). I also tried to add the add-in manually pointing it directly to the adxloader.dll but still no go.

What do i need to do in order for Outlook to see my add-in again?
Posted 14 Nov, 2016 12:14:00 Top
developer_cp




Posts: 48
Joined: 2016-10-28
According to the ADX log, it looks like the add-in is loaded, but it won't show up anywhere in Outlook Add-ins nor Options > Add-in.


	Add-in Express Registrator Log File: 11/14/2016 14:07:12

	Installation directory: C:WINDOWSInstaller
	Registrator version: 8.2.4371.0
	Operating System: Microsoft Windows 10 Professional (build 14393), 64-bit
	Process Owner: System
	Command Line: "C:WINDOWSInstallerMSI40B0.tmp" /install="C:Program Files (x86)MyAppEV_Mail.dll" /privileges=user /log=%RoamingAppDataFolder%/MyApp
	Run 'As Administrator': Yes
	Process Elevated: Yes
	Integrity Level: System
	UAC (User Account Control): On
	--------------------------------------------------------------
	14:07:12 0448 Starting the add-in registration process.
	14:07:12 0448 Loading mscoree.dll
	14:07:12 0448 Success.
	14:07:12 0448 .NET Framework installation directory: 
	14:07:12 0448 The latest version of .NET Framework: 'v4.0.30319'
	14:07:12 0448 Loading CLR: v4.0.30319.
	14:07:12 0448 Calling CLRCreateInstance method.
	14:07:12 0448 Success.
	14:07:12 0448 Calling GetRuntime method.
	14:07:12 0448 Success.
	14:07:12 0448 Checking if the hosting API of .NET Framework v4.0 beta is installed.
	14:07:12 0448 The hosting API is up to date.
	14:07:12 0448 Calling GetInterface method for the CorRuntimeHost interface.
	14:07:12 0448 Success.
	14:07:12 0448 Starting CLR...
	14:07:12 0448 Success.
	14:07:12 0448 Getting the CLR version.
	14:07:12 0448 The CLR v4.0.30319 has been initialized successfully.
	14:07:12 0448 Creating a new domain setup.
	14:07:12 0448 Success.
	14:07:12 0448 The 'shadow copy' is disabled.
	14:07:12 0448 Creating a new application domain.
	14:07:12 0448 Success.
	14:07:12 0448 Getting the base directory for the domain.
	14:07:12 0448 Success. The directory is 'C:Program Files (x86)MyApp'.
	14:07:12 0448 Searching for the Add-in Express core library.
	14:07:12 0448 Success. The 'AddinExpress.MSO.2005.dll' file is found.
	14:07:12 0448 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
	14:07:12 0448 Assembly identity is 'AddinExpress.MSO.2005'.
	14:07:12 0448 Success.
	14:07:12 0448 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
	14:07:12 0448 Success.
	14:07:12 0448 Calling the managed registration procedure (DISPID = 1610743823).
	14:07:13 0448 Success.
	14:07:13 0448 The add-in registration process is completed with HRESULT = 0.

Posted 14 Nov, 2016 14:24:45 Top
developer_cp




Posts: 48
Joined: 2016-10-28
I've completely reinstalled Office 365, although the add-in now show up under Options > Add-ins, its location is blank.

Any idea?
Posted 14 Nov, 2016 15:32:03 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello (BTW, what is your name?),

Check if your add-in is listed in the Disabled Items dialog. If so, re-enable it.


Andrei Smolin
Add-in Express Team Leader
Posted 15 Nov, 2016 05:37:14 Top
developer_cp




Posts: 48
Joined: 2016-10-28
Hi, my name is Eric.

And I've checked the list. There is nothing that shows up in Outlook 2016 despite the installation went successful... Is not in Options > Add-ins.

I got a few questions on Outlook:


  • when Add-in Express gets register into Outlook, where does it supposed to create a registry key?
  • when Outlook loads the Add-ins, does it load the adxloader.dll? Or is it supposed to load the Add-in's dll (ex: MyApp.dll)?
  • where can I find/enable the start up log in order to troubleshoot potential Outlook start up issues?


I've even uninstalled and reinstalled Outlook, and still can't get it to "see" the Add-in. I'm thinking when I ran CCleaner to clean the registry, it deleted some very old keys that was left over by the old Add-in, this may explain why my Add-in was "working" with some old values without knowing it... now that i've kind a cleaned everything up (unintentionally) it won't load anymore perhaps.
Posted 15 Nov, 2016 08:58:40 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Eric,

developer_cp writes:
when Add-in Express gets register into Outlook, where does it supposed to create a registry key?


Check section "Locating COM add-ins in the registry" at https://www.add-in-express.com/docs/net-deploying-addins.php.

developer_cp writes:
when Outlook loads the Add-ins, does it load the adxloader.dll? Or is it supposed to load the Add-in's dll (ex: MyApp.dll)?


It loads adxloader.dll (adxloader64.dll). By default, the loader creates adxloader.log. If the log file isn't created, this means Office doesn't even start loading adxloader.dll.

Ah, I've just noticed that you have Process Owner: System in the log file and you install the add-in per-user. You need to check section "Per-User add-in is registered for System user" at https://www.add-in-express.com/docs/troubleshooting-tips.php#per-user-addin.


Andrei Smolin
Add-in Express Team Leader
Posted 15 Nov, 2016 09:44:08 Top
developer_cp




Posts: 48
Joined: 2016-10-28
Andrei Smolin writes:
Ah, I've just noticed that you have Process Owner: System in the log file and you install the add-in per-user. You need to check section "Per-User add-in is registered for System user" at https://www.add-in-express.com/docs/troubleshooting-tips.php#per-user-addin.


OH MY GOD. I think that was it, I removed "/privileges=user " from the registration command line. Oh man, it sucks that I wasted over a day on this, and there is nothing shown in ANY logs. Stupid Outlook, it just throws "MyAddIn is not a valid Outlook Addins"!!!!
Posted 16 Nov, 2016 15:16:47 Top
developer_cp




Posts: 48
Joined: 2016-10-28
@Andrei Smolin, after removing the /privileges=user in the commandline, when I unregister, the adxregistor.exe is now stuck in limbo.
I had to kill it manually in the Task Manager. Thought?
Posted 16 Nov, 2016 18:58:10 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Eric,

Section Deploying a per-machine Office extension via an MSI installer - see the PDF file in the folder {Add-in Express}\Docs on your development PC - describes the parameters that you need to pass to adxregistrator.exe. I strongly recommend that you check your project against that section.


Andrei Smolin
Add-in Express Team Leader
Posted 17 Nov, 2016 06:44:47 Top