Add-In installed for all users of a computer

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

Add-In installed for all users of a computer
Add-In installed for all users of a computer 
Josep Llort Tella




Posts: 34
Joined: 2012-01-18
Hello,
My goal is to have my Add-In installed for all users of a computer, for example, if I have 4 Add-Ins and 10 users I have to make 40 installations.

I have followed the steps indicated in these two links:
https://www.add-in-express.com/creating-addins-blog/2011/02/22/deploying-permachine-office-extensions-msi-installer/
https://www.add-in-express.com/forum/read.php?FID=5&TID=9863

But although the Add-In is shown in the Programs section of the Control Panel for all users (Standard and Administrators), but when you open Microsoft Word, for example, the Add-In is visible only to the administrator user who installed it and Not so for the others, whether they are users (Standard or Administrators).
Can you help me, please.

Attached is the .log that is only created in the session of the user who installs it.
Greetings, I am waiting for your comments.
Thank you.



adxregistrator.log

Add-in Express Registrator Log File: 10/16/2018 12:09:02

Installation directory: C:Program FilesTestOpenKMTestAddinOKM
Registrator version: 8.6.4408.0
Operating System: Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:Program FilesTestOpenKMTestAddinOKMdxregistrator.exe" /install="TestAddinOKM.dll" /privileges=admin
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): On
--------------------------------------------------------------
12:09:02 0160 Starting the add-in registration process.
12:09:02 0160 Loading mscoree.dll
12:09:02 0160 Success.
12:09:02 0160 .NET Framework installation directory: 
12:09:02 0160 The latest version of .NET Framework: 'v4.0.30319'
12:09:02 0160 Loading CLR: v4.0.30319.
12:09:02 0160 Calling CLRCreateInstance method.
12:09:02 0160 Success.
12:09:02 0160 Calling GetRuntime method.
12:09:02 0160 Success.
12:09:02 0160 Checking if the hosting API of .NET Framework v4.0 beta is installed.
12:09:02 0160 The hosting API is up to date.
12:09:02 0160 Calling GetInterface method for the CorRuntimeHost interface.
12:09:02 0160 Success.
12:09:02 0160 Starting CLR...
12:09:02 0160 Success.
12:09:02 0160 Getting the CLR version.
12:09:02 0160 The CLR v4.0.30319 has been initialized successfully.
12:09:02 0160 Creating a new domain setup.
12:09:02 0160 Success.
12:09:02 0160 Getting the add-in directory.
12:09:02 0160 Success. The directory is 'C:Program FilesTestOpenKMTestAddinOKM'
12:09:02 0160 The 'shadow copy' is disabled.
12:09:02 0160 Creating a new application domain.
12:09:02 0160 Success.
12:09:02 0160 Getting the base directory for the domain.
12:09:02 0160 Success. The directory is 'C:Program FilesTestOpenKMTestAddinOKM'.
12:09:02 0160 Searching for the Add-in Express core library.
12:09:02 0160 Success. The 'AddinExpress.MSO.2005.dll' file is found.
12:09:02 0160 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
12:09:02 0160 Assembly identity is 'AddinExpress.MSO.2005'.
12:09:02 0160 Success.
12:09:02 0160 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
12:09:02 0160 Success.
12:09:02 0160 Calling the managed registration procedure (DISPID = 1610743823).
12:09:02 0160 Registration success.
12:09:02 0160 The add-in registration process is completed with HRESULT = 0.




adxloader.log:


Add-in Express Loader Log File: 10/16/2018 12:09:19:370

Startup directory: C:Program FilesTestOpenKMTestAddinOKM
Loader version: 8.6.4408.0
Operating System: Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:Program FilesMicrosoft OfficeOffice12WINWORD.EXE" 
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
12:09:19:370 0920 3224 Start.
12:09:19:370 0920 3224 The minimum supported Office version is 11
12:09:19:370 0920 3224 The host's version is 12.0.4518.0
12:09:19:370 0920 3224 Creating a new instance of the add-in loader.
12:09:19:370 0920 3224 Loading mscoree.dll
12:09:19:370 0920 3224 Success.
12:09:19:370 0920 3224 Loading the configuration from the system registry.
12:09:19:370 0920 3224 Getting the latest CLR version.
12:09:19:370 0920 3224 The latest CLR version is 'v4.0.30319'.
12:09:19:370 0920 3224 The configuration has been loaded successfully.
12:09:19:370 0920 3224     Runtime version: v4.0.30319.
12:09:19:370 0920 3224     Assembly name: TestAddinOKM, PublicKeyToken=44F7BDAD06553FB7.
12:09:19:380 0920 3224     Class name: TestAddinOKM.AddinModule.
12:09:19:380 0920 3224     Registry key: CLSID{26A0DC1E-943A-41CF-BAC7-6AD73BB47947}.
12:09:19:380 0920 3224 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
12:09:19:380 0920 3224 Loading CLR: v4.0.30319.
12:09:19:380 0920 3224 Calling CLRCreateInstance method.
12:09:19:380 0920 3224 Success.
12:09:19:380 0920 3224 Calling GetRuntime method.
12:09:19:380 0920 3224 Success.
12:09:19:380 0920 3224 Checking if the hosting API of .NET Framework v4.0 beta is installed.
12:09:19:380 0920 3224 The hosting API is up to date.
12:09:19:380 0920 3224 Calling GetInterface method for the CorRuntimeHost interface.
12:09:19:380 0920 3224 Success.
12:09:19:380 0920 3224 Starting CLR...
12:09:19:380 0920 3224 Success.
12:09:19:380 0920 3224 Getting the CLR version.
12:09:19:380 0920 3224 The CLR v4.0.30319 has been initialized successfully.
12:09:19:380 0920 3224 Creating a new domain setup.
12:09:19:380 0920 3224 Success.
12:09:19:380 0920 3224 Getting the add-in directory.
12:09:19:380 0920 3224 Success. The directory is 'C:Program FilesTestOpenKMTestAddinOKM'
12:09:19:380 0920 3224 The 'shadow copy' is disabled.
12:09:19:380 0920 3224 Creating a new application domain.
12:09:19:390 0920 3224 Success.
12:09:19:390 0920 3224 Creating an instance of the managed class. Assembly identity: 'TestAddinOKM, PublicKeyToken=44F7BDAD06553FB7'
12:09:19:420 0920 3224 Success.
12:09:19:420 0920 3224 Unwrapping the managed class.
12:09:19:500 0920 3224 Success.
12:09:19:500 0920 3224 Querying the add-in extensibility.
12:09:19:500 0920 3224 Success.
12:09:19:500 0920 3224 Querying the custom task panes.
12:09:19:500 0920 3224 Success.
12:09:19:500 0920 3224 Querying the ribbon extensibility.
12:09:19:500 0920 3224 Success.
12:09:19:500 0920 3224 Querying the form regions.
12:09:19:500 0920 3224 Success.
12:09:19:500 0920 3224 Querying the encryption provider.
12:09:19:500 0920 3224 The 'EncryptionProvider' interface is not supported.
12:09:19:500 0920 3224 Getting the dispid of the 'Dispose' method.
12:09:19:510 0920 3224 Success.
12:09:19:510 0920 3224 The instance of the managed add-in class has been created successfully.
Posted 16 Oct, 2018 11:15:07 Top
Andrei Smolin


Add-in Express team


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

The log files look correct

What adxloader.log is generated for the user who doesn't have the add-in loaded? Are you sure that add-in isn't registered for that user on the per-user basis?

Also, please re-check the steps listed in 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.

Finally, I won't suggest that you create per-machine installers. In this case all the users on the machine (imagine a terminal server) must close the host application to let you update the add-in. Also, if one day you'll be required to install the add-in for some users only, switching back to per-user installations is more difficult.


Andrei Smolin
Add-in Express Team Leader
Posted 17 Oct, 2018 03:33:17 Top
Josep Llort Tella




Posts: 34
Joined: 2012-01-18
Hi Andrei,

I have updated to the latest version and it worked !!!, thanks.
But, because it is not possible for an installation project to allow selecting if we want to install for "Everyone" or "Justme" as in most other programs?
Will I have to generate two setup projects?
Posted 18 Oct, 2018 17:27:33 Top
Andrei Smolin


Add-in Express team


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

You can switch to using WiX and use the option we describe in section Dual-Purpose Installers, see the PDF file in the folder {Add-in Express}\Docs on your development PC.


Andrei Smolin
Add-in Express Team Leader
Posted 19 Oct, 2018 07:00:43 Top
Josep Llort Tella




Posts: 34
Joined: 2012-01-18
Hi Andrei,
I have created an installation project with WIX, actually, now the same installer works well for one or all users.
Did I notice that now it does not generate the adregistrator.log and adloader.log files because?
Insert the line "/ generateLogFile = true":
<CustomAction Id="_A903D4D8_31D8_48A1_88A6_6F4D355D3238" BinaryKey="adxregistrator_exe" Execute="deferred" ExeCommand="/install=&quot;[TARGETDIR]$(var.OKMWordAddIn.TargetFileName)&quot; /scope=&quot;perMachine&quot;  /generateLogFile=true" Impersonate="no" />
Posted 12 Nov, 2018 07:23:26 Top
Andrei Smolin


Add-in Express team


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

I've created a test add-in and a dual-purpose setup project for it. In this solution, adxloader.dll.manifest doesn't contain an instruction to *not* generate a log file. Equally, the Install actions do not specify /generateLogFile=false; this parameter is specified in Rollback actions only.


Andrei Smolin
Add-in Express Team Leader
Posted 12 Nov, 2018 08:31:51 Top