adxregistrator donīt work ?!

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

adxregistrator donīt work ?!
 
Subscribe
BerndH




Posts: 46
Joined: 2014-09-23
Hi,
this time I have a strange problem: I wrote an Outlook-AddIn. I made a setup with the advanced installer ... everything is fine. Installation works. Outstart starts and shows the add-in. (I registered the dll with a 'custom action')

Now I made lots of source-code changes. Debugmode from VisStudio works fine with outlook. Registration from visStuiod etc. works fine.

If I replace the old dll with my new one and if I make a new setup, the registration while doesnīt work. In the registrationlog is no error shown (looks like the log from the dll-version before).

If i register the dll manually from a cmd (as admin) everything works fine. The log from the adxregistrator looks equal.

Oh: I created the dll for using in LocalMachine (yes: adxregistrator with privileges=admin, RegisterForAllusers=True at properties)

I canīt get my setup running with my new dll (the old works fine) .. any ideas whatīs my problem?

Bernd
Posted 16 May, 2019 04:53:14 Top
BerndH




Posts: 46
Joined: 2014-09-23
Ups, I forgot: the target is win10, 64bit with an Office 2016, 32 bit
Posted 16 May, 2019 05:04:57 Top
Andrei Smolin


Add-in Express team


Posts: 16334
Joined: 2006-05-11
Hello Bernd,

It looks like you deploy the old DLL. Check the DLL's properties the add-in installation folder.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 May, 2019 05:56:28 Top
BerndH




Posts: 46
Joined: 2014-09-23
Hi,
i checked it. Also my installer show me the version of the dll. Itīs the correct dll. Install manual works fine (the dll at the target computer after install is also the correct version)
Posted 16 May, 2019 06:59:38 Top
Andrei Smolin


Add-in Express team


Posts: 16334
Joined: 2006-05-11
Did you switch from a per-machine add-in to per-user one? Also, the installer creates an adxregistrator.exe by default; can you check if it gets created? Does it contain any issues?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 May, 2019 07:20:19 Top
BerndH




Posts: 46
Joined: 2014-09-23
In mit "Advanced Installer" Setup I use Installation type: per-machine only(fails if user is not administrator)

--> I use this on both dllīs the old working and the new not-working one.

My installer create no exe. I guess you mean: adxregistrator.log ?! I see nothing wrong and if I compare it to the one from the setup with the working dll, there are no differences ...

Hereīs the content (some *** added ;-) ) :

Add-in Express Registrator Log File: 05/16/2019 10:07:31

Installation directory: ***
Registrator version: 9.2.4635.0
Operating System: Microsoft Windows 10 Enterprise Edition (build 17134), 64-bit
Process Owner: System
Command Line: "***\adxregistrator.exe" /install="***Add-In.dll" /privileges=admin /generatelogfile=true /logfilelocation="***\"
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: System
UAC (User Account Control): On
--------------------------------------------------------------
10:07:31 0504 Starting the add-in registration process.
10:07:31 0504 Loading mscoree.dll
10:07:31 0504 Success.
10:07:31 0504 .NET Framework installation directory:
10:07:31 0504 The latest version of .NET Framework: 'v4.0.30319'
10:07:31 0504 Loading CLR: v4.0.30319.
10:07:31 0504 Calling CLRCreateInstance method.
10:07:31 0504 Success.
10:07:31 0504 Calling GetRuntime method.
10:07:31 0504 Success.
10:07:31 0504 Checking if the hosting API of .NET Framework v4.0 beta is installed.
10:07:31 0504 The hosting API is up to date.
10:07:31 0504 Calling GetInterface method for the CorRuntimeHost interface.
10:07:31 0504 Success.
10:07:31 0504 Starting CLR...
10:07:31 0504 Success.
10:07:31 0504 Getting the CLR version.
10:07:31 0504 The CLR v4.0.30319 has been initialized successfully.
10:07:31 0504 Creating a new domain setup.
10:07:31 0504 Success.
10:07:31 0504 The 'shadow copy' is disabled.
10:07:31 0504 Creating a new application domain.
10:07:31 0504 Success.
10:07:31 0504 Getting the base directory for the domain.
10:07:31 0504 Success. The directory is 'C:\***\'.
10:07:31 0504 Searching for the Add-in Express core library.
10:07:31 0504 Success. The 'AddinExpress.MSO.2005.dll' file is found.
10:07:31 0504 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
10:07:31 0504 Assembly identity is 'AddinExpress.MSO.2005'.
10:07:32 0504 Success.
10:07:32 0504 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
10:07:32 0504 Success.
10:07:32 0504 Calling the managed registration procedure (DISPID = 1610743823).
10:07:34 0504 Registration success.
10:07:34 0504 The add-in registration process is completed with HRESULT = 0.
Posted 16 May, 2019 07:34:49 Top
Andrei Smolin


Add-in Express team


Posts: 16334
Joined: 2006-05-11
Hello Bernd,

Thank you. That's exactly what I wanted.

Normally, the registrar's log ends as follows:


15:48:14 0560 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:48:14 0560 Success.
15:48:14 0560 Calling the managed registration procedure (DISPID = 1610743823).
15:48:14 1036 32 bits. The 'HKCU\Software\Microsoft\Office\Excel\AddIns\{add-in name}.AddinModule' registry key was created successfully for the '{add-in name}.AddinModule' class: LoadBehavior=3
15:48:14 1036 32 bits. The 'HKCU\CLSID\{SomeGUID}\InprocServer32' registry key was created successfully for the '{add-in name}.AddinModule' class: {profile}\AppData\Local\Default Company\{add-in name}\adxloader.dll
15:48:14 1036 64 bits. The 'HKCU\Software\Microsoft\Office\Excel\AddIns\{add-in name}.AddinModule' registry key was created successfully for the '{add-in name}.AddinModule' class: LoadBehavior=3
15:48:14 1036 64 bits. The 'HKCU\CLSID\{SomeGUID}\InprocServer32' registry key was created successfully for the '{add-in name}.AddinModule' class: {profile}\AppData\Local\Default Company\{add-in name}\adxloader64.dll
15:48:14 0560 Registration success.
15:48:14 0560 The add-in registration process is completed with HRESULT = 0.


I wonder if a new empty add-in project with a new Advanced Installer setup project produces a similar output.

Also, please open your project, expand the References section, select AddinExpress.MSO.2005, and look in the Properties window: what Add-in Express build number do you have in the Version property? Do you have that AddinExpress.MSO.2005.DLL version in the installation folder of your add-in?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 May, 2019 08:07:25 Top
BerndH




Posts: 46
Joined: 2014-09-23
I checked it 9.2.4635.0 is the version in visStudio. Itīs the version in the build-dir I made and after the setup, itīs the version in the add-in dir of the target pc ...
Posted 16 May, 2019 08:36:32 Top
Andrei Smolin


Add-in Express team


Posts: 16334
Joined: 2006-05-11
In the code of the add-in module there are two methods having these attributes:

    <ComRegisterFunctionAttribute()> _
    Public Shared Sub AddinRegister(ByVal t As Type)
        AddinExpress.MSO.ADXAddinModule.ADXRegister(t)
    End Sub
 
    <ComUnregisterFunctionAttribute()> _
    Public Shared Sub AddinUnregister(ByVal t As Type)
        AddinExpress.MSO.ADXAddinModule.ADXUnregister(t)
    End Sub


        [ComRegisterFunctionAttribute]
        public static void AddinRegister(Type t)
        {
            AddinExpress.MSO.ADXAddinModule.ADXRegister(t);
        }
 
        [ComUnregisterFunctionAttribute]
        public static void AddinUnregister(Type t)
        {
            AddinExpress.MSO.ADXAddinModule.ADXUnregister(t);
        }


Please confirm that you have them in the current add-in version and in the previous add-in version.

If you confrim, we would need to have an example reproducing the issue: I've run out of ideas.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 May, 2019 08:41:39 Top