Signed setup project is not installed correctly

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

Signed setup project is not installed correctly
Setup signature 
franck DAMMANN




Posts: 32
Joined: 2021-01-26
Dear all,

I'm using an official Digital Signature Key (SSL.com) to sign my setup project, but If I'm signing the setup project (through AddinExpress-Signing options and then AddinExpress - Create Setup Project) the installation of my Outlook Addin is not performed successfully (the Ribbon tab is not visible).
But if I'm Creating the setup project without Signature it works normally.

May be I'm doing something wrong ?

Thanks,
Franck.
Posted 31 May, 2021 23:53:16 Top
Andrei Smolin


Add-in Express team


Posts: 18338
Joined: 2006-05-11
Hello Franck,

When you install your add-in, adxregistrator.exe registers it. By default a adxregistrator.log is created that describes the registration process. Also by default, when the Office application loads your add-in, the Add-in Express loader creates an adxloader.log.

The default location of the log files is: {user profile}\AppData\Local\Temp\<ProductName>\adxloader.log; the ProductName part reflects the ProductName field of AssemblyInfo.cs (AssemblyInfo.vb). Note that for a per-machine add-in installing requires administrative permissions; this is why adxregistrator.log and adxloader.log may be in different user profiles.

Reinstall your add-in, start the host application and send me both log files.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Jun, 2021 01:27:56 Top
franck DAMMANN




Posts: 32
Joined: 2021-01-26
Thanks Andrei,

Here is the content of adxloader.log

Add-in Express Loader Log File: 06/01/2021 09:57:13:944

Startup directory: C:\xxx
Loader version: 9.4.4644.0
Operating System: Microsoft Windows 10 Professional (build 19042), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE"
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
09:57:13:944 14292 26096 Start.
09:57:13:944 14292 26096 The host's version is 16.0.14026.20246
09:57:13:944 14292 26096 Creating a new instance of the add-in loader.
09:57:13:944 14292 26096 Loading mscoree.dll
09:57:13:945 14292 26096 INFO: Assembly codebase - xxx.
09:57:13:945 14292 26096 INFO: Assembly version - 1.1.0.0.
09:57:13:945 14292 26096 Success.
09:57:13:945 14292 26096 Loading the configuration from the system registry.
09:57:13:945 14292 26096 Getting the latest CLR version.
09:57:13:946 14292 26096 The latest CLR version is 'v4.0.30319'.
09:57:13:946 14292 26096 The configuration has been loaded successfully.
09:57:13:946 14292 26096 Runtime version: v4.0.30319.
09:57:13:946 14292 26096 Assembly name: x-in, PublicKeyToken=x.
09:57:13:946 14292 26096 Class name: x.AddinModule.
09:57:13:946 14292 26096 Registry key: CLSID\{xxx}.
09:57:14:151 14292 26096 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
09:57:14:151 14292 26096 Loading CLR: v4.0.30319.
09:57:14:151 14292 26096 Calling CLRCreateInstance method.
09:57:14:151 14292 26096 Success.
09:57:14:151 14292 26096 Calling GetRuntime method.
09:57:14:151 14292 26096 Success.
09:57:14:151 14292 26096 Checking if the hosting API of .NET Framework v4.0 beta is installed.
09:57:14:151 14292 26096 The hosting API is up to date.
09:57:14:151 14292 26096 Calling SetDefaultStartupFlags method.
09:57:14:151 14292 26096 Success.
09:57:14:151 14292 26096 Calling GetInterface method for the CorRuntimeHost interface.
09:57:14:151 14292 26096 Success.
09:57:14:151 14292 26096 Starting CLR...
09:57:14:151 14292 26096 Success.
09:57:14:151 14292 26096 Getting the CLR version.
09:57:14:151 14292 26096 The CLR v4.0.30319 has been initialized successfully.
09:57:14:156 14292 26096 Error code: 0x8009210d

This Error code seems to be related to a Signing issue (see previous post Signature issue)
Posted 01 Jun, 2021 03:39:21 Top
Andrei Smolin


Add-in Express team


Posts: 18338
Joined: 2006-05-11
Hello Franck,

Thank you for the logs.

Yes, it seems so.

On that page there's a suggestion to use adxpatch if "you use an EV code signing certificate". This suggestion does apply whether you use an EV certificate or not. To find details, check

{Add-in Express installation folder}\Bin\adxpatch.exe /?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Jun, 2021 04:15:23 Top
franck DAMMANN




Posts: 32
Joined: 2021-01-26
Yes I tried, but I cannot use adxpatch.exe as the certificate is loaded in a Yubikey and I do not have physical access to PFX file.

For sure I'm not the only one willing to sign my .msi in order to avoid warning during addin installation ?
Posted 01 Jun, 2021 04:48:48 Top
Andrei Smolin


Add-in Express team


Posts: 18338
Joined: 2006-05-11
Hello Franck,

Can you put your certificate into the Windows certificate store on your machine or on the build server?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Jun, 2021 07:06:34 Top
franck DAMMANN




Posts: 32
Joined: 2021-01-26
Andrei,

I finally found a solution...it seems that Visual Studio MSI builder is not supporting such signature. I finally decided to switch to Wix installer and now everything works fine, but I had to generate MSI file without signature and in a second stage sign my MSI file out of Visual Studio...

Could be helpful for other people having the same issue....
Posted 01 Jun, 2021 07:29:46 Top
Andrei Smolin


Add-in Express team


Posts: 18338
Joined: 2006-05-11
Thank you, Franck!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Jun, 2021 07:57:37 Top