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. jQuery为div添加select和option

    简单描述:用jQuery给页面添加select下拉框,直接上图 总结:清楚明了^_^

  2. cf1051d 简单的状态压缩dp

    /* 给定一个二行n列的格子,在里面填黑白色,要求通过黑白色将格子分为k块 请问有多少种填色方式 dp[j][k][0,1,2,3] 填到第j列,有k块,第j列的颜色, */ #include< ...

  3. mysql 文件导入

    load data infile 文件路径 into table 表 fields terminated by ',' lines terminated '\n'

  4. Android学习基础部分

    今天是放寒假的第四天,这几天加上放假前总共弄了一些Android编程的基础部分,比如下载sdk.配置环境.下载Eclipse的插件(ADT).下载Android Studio.VirtualBox.G ...

  5. 集腋成裘-01-html -html基础

    1 标签 1.1 单标签 注释标签 <!-- 注释标签 --> 换行标签 <br/> 水平线 <hr/> <img src="图片来源" ...

  6. IDEAL 中配置Tomcat的内存值

    -server -XX:PermSize=2048M -XX:MaxPermSize=4096m

  7. kafka.common.KafkaException: Failed to acquire lock on file .lock in /tmp/kafka-logs. A Kafka instance in another process or thread is using this directory.

    1.刚才未启动zookeeper集群的时候,直接启动kafka脚本程序,kafka报错了,但是进程号启动起来来,再次启动出现如下所示的问题,这里先将进程号杀死,再启动脚本程序. [hadoop@sla ...

  8. linux 出错 “INFO: task xxxxxx: 634 blocked for more than 120 seconds.”的3种解决方案

    https://blog.csdn.net/electrocrazy/article/details/79377214

  9. 網管利器!開源管理系統-LibreNMS

    https://www.4rbj4.com/442 https://www.ichiayi.com/wiki/tech/librenms

  10. 【SpringBoot】常用注解

    @EnableAutoConfiguration 启动自动装载:使用了这个注解之后,所有引入的jar的starters都会被自动注入.这个类的设计就是为starter工作的. @RestControl ...