Following content is directly reprinted from From MSI to WiX, Part 19 - The Art of Custom Action, Part 1 Author:Alex Shevchuk Introduction Today we will start exploring custom actions, how to write them, what makes custom action good custom action an…
原文:Wix打包系列(三)自定义Action(Custom Action) 3.1 关于Action 我们已经知道如何生成具有标准安装界面的安装程序了,Windows Installer按照我们的界面设置使用标准的安装步骤进行安装,它的安装过程是由一系列标准的Action组成,通过这些Action来完成对计算机的安装配置:如果我们想自定义安装步骤或者在安装过程中执行自定义的操作,就需要使用自定义的Action.当然,使用Custom Action之前,我们应该先了解一下msi中这些标准的Acti…
应用场景: 有时候我们的站点需要在每个页面实现滚动文字的通知,怎么在不修改Master Page的情况下实现这个功能?我们可以使用Javascript 和 Custom Action 来实现. 创建一个Custom Action.主要使用到 Location = 'ScriptLink' 属性, 该属性可以动态的加载JavaScript 文件链接和代码块到模板页.代码如下: <Elements xmlns="http://schemas.microsoft.com/sharepoint/&…
在MSI工程中,经常会遇到这样的情况: MSI 工程需要调用DLL(C++)中的一个函数实现某些特殊或者复杂的功能,通常的做法是在Custom Action 中调用该DLL . 那么在安装过程中,该Custom Action 被调用的时候,如何使用Visual Studio 逐行Debug DLL 的源代码呢? 答案是:使用VS2010 中的Attach to Process 就可以实现. 步骤如下: 1> VS 工程设置为Debug 模式,并设置断点. 在断点前,弹出一个 dialog ,用来…
工具:VS2010, Installshield 2008 实现功能: 创建一个C++ win32 DLL的工程,MSI 工程需要调用这个DLL,并将Basic MSI工程中的两个参数,传递给DLL, 参数1:Property 表中的 ProductName 参数2:操作 MSI 工程的 installer database 的 Handle 对参数1的操作:通过对话框的方式显示出来. 对参数2的操作:读取 Property 表中的 ProductName 属性,通过对话框的方式显示出来. 步骤…
参考:MSDN: Custom Action Return Values 参考:MSDN: Logging of Action Return Values…
Default Custom Action Locations and IDs SharePoint 2013                             The following table shows the locations, custom action group IDs, and custom action IDs that are used in the CustomAction element and the CustomActionGroup element of…
1. User Custom Action包含Ribbon和ECB,以及Site Action菜单等,参考此处: 2. 系统默认ECB的Class为: ms-core-menu-box --> ECB所在的div使用的class ms-core-menu-list --> ECB所在的ul使用的class ms-core-menu-item --> ECB每一条item所在的li使用的class ms-core-menu-link --> ECB每一条item所在的a链接使用的cl…
今天我们再来看看Bound/Unbound Custom Action吧,什么是Custom Action?不知道的小伙伴们就out了,Dynamics CRM 2013就有了这个功能啦.和WhoAmI这类消息一样,我们都能够通过代码去调用它们.仅仅只是呢,今天我要给大家讲讲怎么用Web API的方式去调用它们. Custom Action也被划分为Bound和Unbound两种类型了,它们的详细含义和之前讲的Function和Action没有差别.唯一的差别就是,这里的Custom Actio…
Win7 64X 安装VisualSVNServer 2.6.0过程中出现错误:Custom action InstallWMISchemaExcute failed: Cannot query proxy blanket: No such interface supported (0x80004002)解决方法如下: 症状 您在笔记本电脑上运行VisualSVN服务器与独立NVIDIA图形,遇到下列行为: VisualSVN服务器中断错误的安装或升级. Custom action Instal…