Excel Add-in - How to automate installation

Thursday, 20 October 2011

Automatic Approach

​The best way to automate the adding of the Sharperlight Excel add-in is to call the Sharperlight Excel Add-in Intaller Application found in the installation folder in ​C:\Program Files (x86)\phiLight\SharperLight\bin\md.InstallExcelAddin.exe

The application will create the correct Excel Add-in registry keys given that it has enough permissions to do so.  If you are using Critrix you may want to call this Application when user sign-on scripts are run to ensure that the Sharperlight Add-in is present.   Another appoarch would be to have a Desktop Shortcut so that the user can click the icon to have the Add-in reinstalled if for whatever reason the Add-in had disappeared or had dropped out.

Manual Approach

Installing the Excel Add-in

You can manually add the Sharperlight Excel Add-in by using Excel selecting

File\Options\Add-Ins\Manage and clicking the Go button and browsing for the add-in file

32bit Office

C:\Program Files\phiLight\SharperLight\bin\md.XLAddin.xll

64bit Offce

C:\Program Files\phiLight\SharperLight\bin\md.XLAddin64.dll

It is also possible have the add-in open by setting the Windows Registry Key

Installing the Excel Add-in on Citrix 

The link below is an example of using a batch file to auto set the user Excel registry settings to have Excel open the add-in when the user starts Excel.

The batch file is run when the user logs onto Citrix.  In this way the user does not have to manually add the add-in themselves in Excel.

The batch file can be later removed when everyone has logged on at least once.

You could take this method a step further and only run the batch for the few users that require the add-in or have the batch determine which users it creates the reg key for

You need to get the office version of the reg key matched with the version on Critix,  14.0 is for Office 2010

Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options]
"OPEN"="/R \"C:\\Program Files (x86)\\phiLight\\SharperLight\\bin\\md.XLAddin.xll\""
 
 
If more than one add-in is present then OPEN1  OPEN2 etc may have to be used.

http://www.network54.com/Forum/58296/thread/992552834/Issues+with+Excel+Add-In+on+Citrix

Permissions

Because someone may try and add the add-in manually you can prevent them from using the Add-in in the following way

The link below explains that specific users can be given access to run the Add-in by setting permissions on the add-in DLL

32bit Office

C:\Program Files\phiLight\SharperLight\bin\md.XLAddin.xll

64bit Offce

C:\Program Files\phiLight\SharperLight\bin\md.XLAddin64.dll

http://forums.citrix.com/message.jspa?messageID=1398432

Trouble Shooting

Excel creates registry keys when an add-in is added.  The follow are reasons are why the add-in may disappear.

  1. Excel did not have permissions to create the registry keys  (Run Excel as Admin and add the Sharperlight Add-in then close and open Excel again)
  2. The IT department may have scripts to clear down the users profile on logoff and copy a basic profile on logon which is missing the add-in registry keys
  3. There is another add-in that doesn't comply with add-in rules and always assumes it will be the first or last add-in for example.  Try adding Sharperlight after this add-in not before.  For example Analysis ToolPak has been known to cause issues when it is not the last Add-in in the list.
  4. In Trust Centre on the Add-ins tab make sure that Disable all Application Add-in is not on

    https://msdn.microsoft.com/en-us/library/bb386106.aspx

    http://community.spiceworks.com/topic/457676-excel-2013-add-ins-tab-keeps-disappearing-from-ribbon

重新定位Excel Addin插件的方法的更多相关文章

  1. sublime text2 用ctags插件实现方法定位

    sublime text2 用ctags插件实现方法定位(转) 我们用sublime几乎都会首先安装这个插件,这个插件是管理插件的功能,先安装它,再安装其他插件就方便了. 点击sublime的菜单栏 ...

  2. JS客户端读取Excel文件插件js-xls使用方法

    js-xls是一款客户端读取Excel的插件,亲测IE11.FireFox.Chrome可用,读取速度也客观. 插件Demo地址:http://oss.sheetjs.com/js-xlsx/    ...

  3. 浅谈Excel开发:十一 针对64位Excel的插件的开发和部署

    自Office 2010版本开始有了32位和64位之分,对Excel来说,32位的Excel和64位的Excel在性能上的主要区别是64位的Excel能够处理2G及2G以上的大数据集. 随着64位操作 ...

  4. EXCEL快速自动填充方法集锦

    EXCEL快速自动填充方法集锦 原文地址,转载请注明:http://www.cnblogs.com/croso/p/5396841.html 方法一: 名称框输入a1:a1000回车,1, ctrl+ ...

  5. 安装Sublime Text 3插件的方法

    直接安装 安装Sublime text 3插件很方便,可以直接下载安装包解压缩到Packages目录(菜单->preferences->packages). 使用Package Contr ...

  6. 安装Sublime Text 3插件的方法:

    安装Sublime Text 3插件的方法: 朋友们,小站活着不容易,全靠广告费养着了,如果本文对你有帮助.麻烦动下手点下页面的广告吧,谢谢! 直接安装 安装Sublime text 2插件很方便,可 ...

  7. 实战Excel Add-in的三种玩法

    作者:陈希章 发表于 2017年11月26日 前言 这个系列文章应该有一阵子没有更新了,原因是一如既往的多,但是根本所在是我对于某些章节其实还没有完全想好怎么写,尤其是对于Office Add-in这 ...

  8. 安装Sublime Text 3插件的方法(转自Rising的博文)

    安装Sublime Text 3插件的方法: 朋友们,小站活着不容易,全靠广告费养着了,如果本文对你有帮助.麻烦动下手点下页面的广告吧,谢谢! 直接安装 安装Sublime text 2插件很方便,可 ...

  9. Excel Add-in

    Excel Add-in 前言 这个系列文章应该有一阵子没有更新了,原因是一如既往的多,但是根本所在是我对于某些章节其实还没有完全想好怎么写,尤其是对于Office Add-in这块 —— 到底是要每 ...

随机推荐

  1. 前端基础之初识HTML

    一.web服务的本质 import socket def main(): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.b ...

  2. 单例、异常、eval函数

    一.单例 01. 单例设计模式 设计模式 设计模式 是 前人工作的总结和提炼,通常,被人们广泛流传的设计模式都是针对 某一特定问题 的成熟的解决方案 使用 设计模式 是为了可重用代码.让代码更容易被他 ...

  3. 数据库MySql的安装

    1.MySQL概述 MySQL最初是由“MySQL AB公司”开发的一套关系型数据库管理系统(RDBMS-Relation DataBase Management System).MySQL不仅是最流 ...

  4. ActiveSync中的SendMail

           SendMail命令是专门用于发送MIME格式邮件的.在这里,子元素ClientId必须不同,否则会被认为是同一封邮件,被服务器拒绝.         疑问:ClientId应该是和账户 ...

  5. pandas之系列操作(一)

    1.读Excel: # coding=utf-8 import pandas as pd import pymysql sql_select =" xxxxx " con = py ...

  6. Java中堆内存和栈内存的区别

    Java把内存分成两种,一种叫做栈内存,一种叫做堆内存. 在函数中定义的一些基本类型的变量和对象的引用变量都是在函数的栈内存中分配.当在一段代码块中定义一个变量时,java就在栈中为这个变量分配内存空 ...

  7. .Net Core下发送WebRequest请求的两种方式

    1.使用RestSharp.NetCore 2.使用WebApi请求方式

  8. P2860 [USACO06JAN]冗余路径Redundant Paths

    题解: 首先要边双缩点这很显然 然后变成树上问题 发现dp,dfs好像不太对 考虑一下度数 发现只要在度数为1的点之间连边 但我好像不太会证明这个东西.. 网上也没有看到比较正确的证明方法和连边策略. ...

  9. Storm——Android SQLite数据库管理类库

    Storm是一个Android SQLite数据库管理类库,可以通过注解创建表和迁移数据库.它不是ORM框架.   特性: 1.通过@Annotations创建表: 2.通过@Annotations迁 ...

  10. mysql配置为半同步复制

    mysql 半同步插件是由谷歌提供,具体位置/usr/local/mysql/lib/plugin/下,一个是 master用的 semisync_master.so,一个是 slave 用的 sem ...