Link to home
Start Free TrialLog in
Avatar of rhiancohen
rhiancohenFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Adding 2 x Excel 2010 Add-Ins available to all users

Hiya,

We have 2 x Excel 2010 add-ins. One add-in.xla and one add-in.xlam etc

Is there any way to make these add-ins add and open automatically for all users of a Remote Desktop Services Services Server 2008 R2 server when they open Excel 2010 on this server?

Just as note. I don't know if it makes any difference but the users have roaming profiles
Avatar of Jacques Geday
Jacques Geday
Flag of Canada image

When you say:
open Excel 2010 on this server?

You mean on the server, Excel 2010 is installed as a software and when the users connect thru remote desktop they will be running the excel that is on the server and not the one on their machine correct ?

gowflow
Avatar of rhiancohen

ASKER

Correct Excel is installed on the Remote Desktop Server and users mstsc into this and use Excel.

I did try running a bat script to put these 2 addins in via the below as when I installed them manually I could see the registry entries for the addins in the paths below

reg add HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options\ /v OPEN /t REG_SZ /d <"path to add-in">

and

reg add HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options\ /v OPEN1 /t REG_SZ /d <"Path to add-in">

/v = name of key
/t = type of key
/d = Data to go in the key (in my case the path name to the add-in)


But this didn't work and ended up screwing up the opening of Excel which then started saying it couldn't access paths etc. My test user was a local admin so I don't think it was a permission problem. I'm not sure why this didn't work though as I thought this was quite a neat solution but maybe it requires other entries I wasn't aware of.
you will need to repair Excel on that server thru Add Remove Programs then login as an admin on that server physically and open Excel goto Excel options / Addin / Go / on the list click on the 2 addin (you will probably only see the xlsam .. not sure if you can see the .xla) close excel then try as remote desktop.

gowflow
I just removed the 2 entries from the registry and then Excel opened fine
so is your issue resolved ?
gowflow
No I still need a solution that adds the 2 Excel add-ins automatically for all users

All I was saying that I can get back to normal after running my batch script and it causing the Excel issues by removing the 2 OPEN keys from the registry but now back to square 1 again
Did you try my suggestion ? as when you add the addin as administrator it should be added automatically to all users.

Here it is, skipping the repair part.

quote
you will need to repair Excel on that server thru Add Remove Programs then login as an admin on that server physically and open Excel goto Excel options / Addin / Go / on the list click on the 2 addin (you will probably only see the xlsam .. not sure if you can see the .xla) close excel then try as remote desktop.
unquote

gowflow
Just tried this but this didn't work either sorry.
what happens ? lets dissect.

1) you login as administrator ? yes/no
2) You opened excel went to addin was able to see the addin? yes/no
3) if you saw the addin you saw both or only 1 ?
4) if you saw both then are they ticked if you go to GO ?
5) if they are ticked then if you go developer then press visual basic can you see the code of these 2 addin on the left pane ?


If you need help you need to provide feedback not just tried but did not work !
gowlfow
When I test this I do the following

1. Log into the Remote Desktop Server as an Administrator.
2. Open Excel 2010
3. Click on the Developer tab
4. Click on Add-ins
5. Browse for the first add in. Select and hit OK and it installs
6. Click on Add-ins again and browse for second add-in and hit OK
7. Close Excel
8. Open Excel and check Add-ins are there which they are

Next try as test user

1. Log into the Remote Desktop Server as an Test User.
2. Open Excel 2010
3. Click on the Developer tab
4. Click on Add-ins
5. The Add-ins that I added as an Administrator are not there
7. Close Excel

I've also tried putting the RDS Server in Install Mode (change user /Install) and adding the Add-ins into Excel then going back to Execute Mode but this didn't work either

I've tried putting the add-ins into the same folder as the default Excel Add-ins (Analysis/Solver/Eurotool) D:\Program Files (x86)\Microsoft Office\Office14\Library but this didn't work either.

Had a look at saving an Excel 2010 template with these add-ins in and saving it to D:\Program Files (x86)\Microsoft Office\Office14\XLSTART but this didn't work either
don't know if it makes a difference but  I said

1. log as administrator
2. open Excel
3. goto Excel OPTIONS / Addin / Go and add the addins there


YOU DID
2. Open Excel 2010
3. Click on the Developer tab
4. Click on Add-ins

!!!
gowflow
Hiya,

I tried doing it the way you suggested below as well but the testuser still does not get the add-ins

1. log as administrator
2. open Excel
3. goto Excel OPTIONS / Addin / Go and add the addins there
ok I think I got it, hv tried it on my machine and think this is what needs to be done.

1) You will need to create on the server this path:
C:\Users\Public\Appdata\Roaming\Microsoft\Addin

Usually the addins that you already created are under:
C:\Users\[Administrator]\Appdata\Roaming\Microsoft\Addin

where [Administrator] is the login as asdministrator or the user name you loged in to perform the addins.

What we need to do is to create the path detailed in 1) like you need to create the folders all the way till Addin folder in the sequence described in 1)

2) We will need now to move the Addin from the user Administrator to this public path Addin. Now if they are already activated you need first to de-activate them.

3) To deactivate login as admin open Excel goto Addin and untick these 2 addins close Excel.

4) Now go to the location of the Addin and Cut paste in the public place. They should be under the public place and not the administrator user place.

5) Try now to see if you as administrator or any other user can see them.

gowflow
Hiya,

I have tried the above but still no joy sorry :-(

We use roaming profiles and for the Administrator, when the add-ins are manually added, the only place I can see the Add-ins in the profile is

\\Server\Profiles\User\AppData\Roaming\Microsoft\Office\Recent\add-in1
\\:\Server\Profile\User\AppData\Roaming\Microsoft\Office\Recent\add-in2

There is nothing in

\\Server\Profile\User\AppData\Roaming\Microsoft\AddIns
\\Server\Profile\User\AppData\Roaming\Microsoft\Excel

The Add-ins are on the D Drive which is a trusted location in Excel etc and Macros  are enabled

It's weird. Thanks for all your help with this by the way. Much appreciated. Thought it would be far simpler than this!
in \\Server\Profile\User

pls list the directories you have do you have a Public one ?
I mean under Folder User
gowlfow
ASKER CERTIFIED SOLUTION
Avatar of rhiancohen
rhiancohen
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
We also found today we could actually do it with reg add commands. Basic batch script below which can then be put into a Group Policy for logon

/f overwrites current key if there and "\" has to be used to enclose paths with spaces in which then puts the path in correctly in the registry key with quotes

REG ADD HKEY_CURRENT_USER\Software\Microsoft\Office\ /f
REG ADD HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\ /f
REG ADD HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\ /f
REG ADD “HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\ \Options\ /f
REG ADD HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options\ /v OPEN /t REG_SZ /d “\”D:\Program Files (x86)\ibm\cognos\tm1\bin\tm1p.xla”\” /f
REG ADD HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options\ /v OPEN1 /t REG_SZ /d “\”D:\Program Files (x86)\ibm\cognos\tm1\bin\ManCalcv2.xlam”\” /f
All 3 solutions will work but we found the simple batch script worked the best for us using the reg add commands.