Cannot install Excel add in for non-admin users

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

Cannot install Excel add in for non-admin users
 
andrew.cutforth




Posts: 6
Joined: 2014-06-05
I use the following command to install my Excel add in:
adxregistrator.exe /install="myaddinname.dll" /privileges=admin

In my installer (Inno Setup) for a user who is not an admin they will need to enter admin account details to install but then I assume they are running as that user. So when the above command runs in the installer it gets installed into Excel for the admin account. It then does not show up in Excel for the lesser account.

How do I change the adxregistrator command line options to install it for all users?

Thanks
Posted 24 Feb, 2021 07:02:11 Top
andrew.cutforth




Posts: 6
Joined: 2014-06-05
I figured this out now by setting RegisterForAllUsers=true on the add in module properties. This edited the adxloader.dll.manifest file. I did not have to distribute the manifest file though which is strange.
Posted 24 Feb, 2021 07:12:47 Top
Andrei Smolin


Add-in Express team


Posts: 18828
Joined: 2006-05-11
Hello Andrew,

Make sure that you follow the steps given 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.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Feb, 2021 07:36:58 Top
Andrei Smolin


Add-in Express team


Posts: 18828
Joined: 2006-05-11
You must deploy the manifest. It provides adxregistrator and adxloader with information about your add-in assembly.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Feb, 2021 07:38:14 Top
andrew.cutforth




Posts: 6
Joined: 2014-06-05
It is odd that I have never deployed the manifest and it is fully working now for both types of users.

I don't do MSI installs because I have always used Inno Setup to create my installers which is simple to use.
Posted 24 Feb, 2021 07:45:58 Top
Andrei Smolin


Add-in Express team


Posts: 18828
Joined: 2006-05-11
Anyway, it uses MSI. And your setup project must includes all the things mentioned in that section. You only need to "translate" them to the language of InnoSetup.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Feb, 2021 07:49:59 Top
andrew.cutforth




Posts: 6
Joined: 2014-06-05
Thanks for your help, I will look at doing that
Posted 24 Feb, 2021 08:01:11 Top
Andrei Smolin


Add-in Express team


Posts: 18828
Joined: 2006-05-11
You are welcome.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Feb, 2021 08:31:16 Top