Problems using adxregistrator.exe from Wix installer

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

Problems using adxregistrator.exe from Wix installer
 
rsturm


Guest


We're building a WIX installer for our addin but are running into some problems using adxregistrator.exe.

The installer executes the adxregistrator.exe with the right /install and /privileges parameters, just like the guides describe. When checking in Outlook after the installation completes, the addin is not registered.

This is the adxregistrator.log:
Add-in Express Registrator Log File: 11/18/2010 09:26:27

Installation directory: C:\Program Files\TestOutlook\OutlookAddin\
Registrator version: 6.1.3044.0
-------------------------------
09:26:27 Starting the add-in registration process.
09:26:27 Loading mscoree.dll
09:26:27 Success.
09:26:27 .NET Framework installation directory:
09:26:27 The latest version of .NET Framework: 'v4.0.30319'
09:26:27 Loading CLR: v4.0.30319.
09:26:27 Calling CLRCreateInstance method.
09:26:27 Success.
09:26:27 Calling GetRuntime method.
09:26:27 Success.
09:26:27 Calling GetInterface method.
09:26:29 Calling GetInterface method for the CorRuntimeHost interface.
09:26:29 Success.
09:26:29 Starting CLR...
09:26:38 Success.
09:26:38 The CLR v4.0.30319 has been initialized successfully.
09:26:38 Creating a new domain setup.
09:26:39 Success.
09:26:39 Getting the add-in directory.
09:26:39 Success. The directory is 'C:\Program Files\TestOutlook\OutlookAddin\'
09:26:39 The configuration file is '(null)'
09:26:39 The 'shadow copy' is disabled.
09:26:39 Creating a new application domain.
09:26:40 Success.
09:26:40 Getting the base directory for the domain.
09:26:40 Success. The directory is 'C:\Program Files\TestOutlook\OutlookAddin\'.
09:26:40 Searching for the Add-in Express core library.
09:26:40 Success. The 'AddinExpress.MSO.2005.dll' file is found.
09:26:40 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
09:26:40 Assembly identity is 'AddinExpress.MSO.2005'.
09:26:41 Success.
09:26:41 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
09:26:41 Success.
09:26:41 Calling the managed registration procedure.
09:26:44 Success.
09:26:44 The add-in registration process is completed with HRESULT = 0.



I'm using ProcMon to see if the install actually executes adxregistrator.exe and the following is shown in the log file after the Wix setup completes:
"C:\Program Files\TestOutlook\OutlookAddin\adxregistrator.exe" /install="MyAddin.dll" /privileges=user

This should be good, because after i execute the exact same in a command prompt Outlook does show the addin as registered.

So a few questions regarding all the above:
1) What does adxregistrator.exe do exactly? And is this described somewhere in a manual or other form of documentation. It's very important to us to have a reliable installation and to know what it does exactly as we plan to ship our addin to thousands of customers on a huge variety of systems.
2) Is there any way to check the result of adxregistrator, so setup can actually see if the addin installed correctly?
3) Why do you think the adxregistrator works from command prompt but not from my Wix installer? And what do i have to do to make it work ? The above was all done on a XP machine, so no UAC involved.
4) Are there any alternatives for using adxregistrator to get the addin registered?
Posted 18 Nov, 2010 03:18:45 Top
Sergey Grischenko


Add-in Express team


Posts: 7234
Joined: 2004-07-05
Hello.

Please rebuild the add-in with the latest version of Add-in Express (v6.2.3051). The latest version of registrator provides more detailed log file.
You can also register the add-in using the regsvr32.exe tool.
Posted 18 Nov, 2010 04:38:42 Top
Eugene Astafiev


Guest


Hello Reinier,

In addition to Sergey's answer I would like to add the following: please have a look at the How your Office extension loads into an Office application section in the documentation. There you can find the required windows registry entries. Also I have found the Registry Entries for Application-Level Add-Ins article in MSDN.
Posted 18 Nov, 2010 06:39:51 Top
rsturm


Guest


Hi again, thanks for your replies.
I've installed the latest version of AddinExpress and a more detailed logfile is produced now, but the add-in still isn't registered into Outlook.
It doesn't show in disabled add-ins either, but the logfile states it registered succesfully.

As the logfile shows, we're using just the /install param and not the /privileges param this time. This is because another post on the forum mentioned that using the privileges parameter caused his setup on XP to fail. We've tried with and without the privileges param.

Here's the logfile:

Add-in Express Registrator Log File: 11/19/2010 13:38:52

Installation directory: C:\Program Files\TestOutlook\OutlookAddin\
Registrator version: 6.2.3051.0
Operating System: Microsoft Windows XP Professional Service Pack 2 (build 2600)
Process Owner: System
Command Line: "C:\Program Files\TestOutlook\OutlookAddin\adxregistrator.exe" /install="TestOutlook.dll"
Run 'As Administrator': Yes
Process Elevated: No
Integrity Level: Untrusted
UAC (User Account Control): Off
--------------------------------------------------------------
13:38:52 Starting the add-in registration process.
13:38:52 Loading mscoree.dll
13:38:52 Success.
13:38:52 .NET Framework installation directory:
13:38:53 The latest version of .NET Framework: 'v4.0.30319'
13:38:53 Loading CLR: v4.0.30319.
13:38:53 Calling CLRCreateInstance method.
13:38:53 Success.
13:38:53 Calling GetRuntime method.
13:38:53 Success.
13:38:53 Calling GetInterface method.
13:38:53 Calling GetInterface method for the CorRuntimeHost interface.
13:38:53 Success.
13:38:53 Starting CLR...
13:38:54 Success.
13:38:54 The CLR v4.0.30319 has been initialized successfully.
13:38:54 Creating a new domain setup.
13:38:55 Success.
13:38:55 Getting the add-in directory.
13:38:55 Success. The directory is 'C:\Program Files\TestOutlook\OutlookAddin\'
13:38:55 The 'shadow copy' is disabled.
13:38:55 Creating a new application domain.
13:38:56 Success.
13:38:56 Getting the base directory for the domain.
13:38:56 Success. The directory is 'C:\Program Files\TestOutlook\OutlookAddin\'.
13:38:56 Searching for the Add-in Express core library.
13:38:56 Success. The 'AddinExpress.MSO.2005.dll' file is found.
13:38:56 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
13:38:56 Assembly identity is 'AddinExpress.MSO.2005'.
13:38:57 Success.
13:38:57 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
13:38:57 Success.
13:38:57 Calling the managed registration procedure.
13:38:57 388 Connecting to the application domain of the Add-in Express loader.
13:38:57 388 Success.
13:38:57 388 Loading the 'TestOutlook.dll' assembly.
13:38:58 388 Success.
13:38:58 388 Registering the 'TestOutlook.dll' assembly (administrator).
13:39:03 388 The ' TestOutlook.dll' assembly has been registered successfully.
13:39:03 Success.
13:39:03 The add-in registration process is completed with HRESULT = 0.

I can also supply a logfile of the complete installation, or the installation itself. Please let me know what emailaddress to mail this to if needed.

Thank you !
Posted 19 Nov, 2010 07:40:42 Top
Sergey Grischenko


Add-in Express team


Posts: 7234
Joined: 2004-07-05
As you can see in the log, the installer runs adxregistrator under the SYSTEM account, and it should be run under the User or Administrator.
Please try to register the add-in using the DllRegister and DllUnregister exported functions of adxloader.dll (they can be called in custom actions of the installer). Or just set the 'Always Install with elevated privileges' option to its default value in the Local Group Policy editor (see 'User Configuration'->'Administrative Template'->'Windows Components'->'Windows Installer' and 'Computer Configuration'->'Administrative Template'->'Windows Components'->'Windows Installer'). Here are the related articles:
http://msdn.microsoft.com/en-us/library/aa367561(v=VS.85).aspx
http://support.microsoft.com/kb/307882
Posted 19 Nov, 2010 08:10:50 Top