WiX installer adxregistrator fails to write subkey

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

WiX installer adxregistrator fails to write subkey
I understand this is similar to other posts but I haven't found a working solution yet. 
Josua STrauss




Posts: 7
Joined: 2017-04-12
Windows 7
Visual Studio 2015 Update 3
Add-in Express 9.4
WiX 4

I can clarify the versions as needed.

I created a project and built it using the MSI visual studio installer. This worked correctly and I was able to load and test my extension. I then removed the MSI installer project in favor of using a WiX based installer because this process seems easier to automate. I can rebuild and try to install the project but the adxregistration process fails. Here is the output.

Please note that I do get the UAC prompt to elevate privileges. I have tried adding properties to the build files as recommended on your forums but they do not seem to have any effect on the output of the adxregistration process.

-------------------------------------------------------



Add-in Express Registrator Log File: 04/12/2017 16:14:47

Installation directory: C:\Windows\Installer\
Registrator version: 9.4.6126.0
Operating System: Microsoft Windows 7 Enterprise Edition Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:\Windows\Installer\MSIFA87.tmp" /install="C:\Program Files (x86)\Level Access\Access Assistant\Access Assitant for Internet Explorer.dll" /privileges=admin
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
--------------------------------------------------------------
16:14:47 0196 Starting the add-in registration process.
16:14:47 0196 Loading mscoree.dll
16:14:47 0196 Success.
16:14:47 0196 .NET Framework installation directory:
16:14:47 0196 The latest version of .NET Framework: 'v4.0.30319'
16:14:47 0196 Loading CLR: v4.0.30319.
16:14:47 0196 Calling CLRCreateInstance method.
16:14:47 0196 Success.
16:14:47 0196 Calling GetRuntime method.
16:14:47 0196 Success.
16:14:47 0196 Checking if the hosting API of .NET Framework v4.0 beta is installed.
16:14:47 0196 The hosting API is up to date.
16:14:47 0196 Calling GetInterface method for the CorRuntimeHost interface.
16:14:47 0196 Success.
16:14:47 0196 Starting CLR...
16:14:47 0196 Success.
16:14:47 0196 Getting the CLR version.
16:14:47 0196 The CLR v4.0.30319 has been initialized successfully.
16:14:47 0196 Creating a new domain setup.
16:14:47 0196 Success.
16:14:47 0196 The 'shadow copy' is disabled.
16:14:47 0196 Creating a new application domain.
16:14:48 0196 Success.
16:14:48 0196 Getting the base directory for the domain.
16:14:48 0196 Success. The directory is 'C:\Program Files (x86)\Level Access\Access Assistant\'.
16:14:48 0196 Searching for the Add-in Express core library.
16:14:48 0196 Success. The 'AddinExpress.IE.dll' file is found.
16:14:48 0196 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:14:48 0196 Assembly identity is 'AddinExpress.IE'.
16:14:48 0196 Success.
16:14:48 0196 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:14:48 0196 Success.
16:14:48 0196 Calling the managed registration procedure (DISPID = 1610743823).
16:14:48 0196 Managed Error:
Date and Time: 4/12/2017 4:14:48 PM
Machine Name: DEV-WIN7-IE11
IP Address: fe80::f9a6:4256:20f6:e3e8%11
Current User: SSBBARTGROUP\jstrauss

Application Domain: C:\Program Files (x86)\Level Access\Access Assistant\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.IE/9.4.6126.0__4416dd98f0861965/AddinExpress.IE.dll
Assembly Full Name: AddinExpress.IE, Version=9.4.6126.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 9.4.6126.0

Exception Source: AddinExpress.IE
Exception Type: System.ComponentModel.Win32Exception
Exception Message: Access is denied
Exception Target Site: CreateSubKey

---- Stack Trace ----
AddinExpress.Projects.Common.ADXRegistryKey.CreateSubKey(subKeyName As String)
AddinExpress.IE.dll: N 0132 (0x84) IL
AddinExpress.Projects.Common.Utilities.RegisterManagedType(rootKey As ADXRegistryKey, type As Type, strAsmName As String, strAsmVersion As String, strAsmCodeBase As String, strRuntimeVersion As String, targetHive As ADXTargetRegistryHive, createVersionKey As Boolean)
AddinExpress.IE.dll: N 0082 (0x52) IL
AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.IE.dll: N 0206 (0xCE) IL
AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.IE.dll: N 0040 (0x28) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
AddinExpress.IE.dll: N 0205 (0xCD) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.IE.dll: N 0705 (0x2C1) IL



16:14:48 0196 The add-in registration process is completed with HRESULT = -2147467259.
Posted 12 Apr, 2017 21:51:42 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hi Josua STrauss,

Josua STrauss writes:
Command Line: "C:\Windows\Installer\MSIFA87.tmp" /install="C:\Program Files (x86)\Level Access\Access Assistant\Access Assitant for Internet Explorer.dll" /privileges=admin
Run 'As Administrator': No


You need to start setup.exe, not the .MSI file. Does this work for you?


Andrei Smolin
Add-in Express Team Leader
Posted 13 Apr, 2017 05:20:24 Top
Josua STrauss




Posts: 7
Joined: 2017-04-12
I am not sure how to do that as the new setup project is only producing the msi file.

I have tried changing the output type to exe in the properties but this gives error.
I have tried wix 3 and 4, both only produce the msi file.
I used Addin Express -> Create Setup Project in both cases.

Not sure what I am missing here.
Posted 13 Apr, 2017 18:37:57 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Josua,

Install WiX 3.10 or 3.11 and let Add-in Express generate a new setup project.


Andrei Smolin
Add-in Express Team Leader
Posted 14 Apr, 2017 05:51:00 Top