Fix: When installing msi, custom action about deleting registy key does not work

Problem description:

The problem may happen when UAC is enabled, it is usually because of the insufficient right to delete the registry key.

Solution:

1. Run installer in command prompt as administrator

2. Set custom action In-script execution to be Deferred Execution in System Context, this can work even if UAC is enabled and without using command line to install

Like Deferred Execution actions, these actions do not launch until the script generated by the Windows Installer service is run. However, actions of this type execute with no user impersonation.

Fix: When installing msi, custom action about deleting registy key does not work

时间: 2024-07-31 14:33:48

Fix: When installing msi, custom action about deleting registy key does not work的相关文章

WIX Custom Action (immediate, deffered, rollback)

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

Custom Action : dynamic link library

工具:VS2010, Installshield 2008 实现功能: 创建一个C++ win32 DLL的工程,MSI 工程需要调用这个DLL,并将MSI工程中的两个参数,传递给DLL, 参数1:Property 表中的 ProductName 参数2:操作 MSI 工程的 installer database 的 Handle 对参数1的操作:通过对话框的方式显示出来. 对参数2的操作:读取 Property 表中的 ProductName 属性,通过对话框的方式显示出来. 步骤一.VS20

SharePoint 2010/SharePoint 2013 Custom Action: 基于Site Collection 滚动文字的通知.

应用场景: 有时候我们的站点需要在每个页面实现滚动文字的通知,怎么在不修改Master Page的情况下实现这个功能?我们可以使用Javascript 和 Custom Action 来实现. 创建一个Custom Action.主要使用到 Location = 'ScriptLink' 属性, 该属性可以动态的加载JavaScript 文件链接和代码块到模板页.代码如下: <Elements xmlns="http://schemas.microsoft.com/sharepoint/&

Dynamics CRM 2015/2016 Web API:Unbound Custom Action 和 Bound Custom Action

今天我们再来看看Bound/Unbound Custom Action吧,什么是Custom Action?不知道的小伙伴们就out了,Dynamics CRM 2013就有了这个功能啦.和WhoAmI这类消息一样,我们都可以通过代码去调用它们,只不过呢,今天我要给大家讲讲怎么用Web API的方式去调用它们. Custom Action也被划分为Bound和Unbound两种类型了,它们的具体含义和之前讲的Function和Action没有区别,唯一的区别就是,这里的Custom Action

SharePoint 2013 - User Custom Action

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链接使用的class m

在VS2012里创建SharePoint Ribbon Custom Action

原文地址:Creating SharePoint Ribbon CustomActions with Visual Studio 2012 本文由SPFarmer翻译 在SharePoint 2010里,创建一个ribbon custom actions并不是一个愉快的经历.你需要知道内部的XML的操作,以及选择正确CommandUIDefinition Id的后台的原理.我们的社区有一些工具,比如 CKSDEV 可以帮一些忙.现在我们高兴的看到,有了一个新的Ribbon Custom Acti

Solr In Action 笔记(1) 之 Key Solr Concepts

Solr In Action 笔记(1) 之 Key Solr Concepts 题记:看了下<Solr In Action>还是收益良多的,只是奈何没有中文版,只能查看英语原版有点类,第一次看整本的英语书,就当复习下英语并顺便做下笔记吧. 1. Solr的框架 从这张图上看Solr的组件还是很齐全以及清楚明了的,但是当你看Solr源码的时候就会发现,哎呀咋看起来这么类呢. 2. Solr的查询方式 上面两张图分别举例了Solr的几个QueryComponent,比如facet,More li

Fix “Could Not Find This Item” When Deleting in Windows 7

If you’ve been using Windows for as long as I have, you have probably run into your share of weird error messages. One that I got recently when trying to delete a file was: Could not find this item. This is no longer located in X. Verify the item’s l

SVN安装过程出现“Custom action InstallWMISchemaExecute failed:服务不存在,或已被标记为删除”

在安装SVN服务端的时候,总是出现下面的错误,进而停止安装.具体的错误如下: 安装了好多的版本,都出现了这样的问题.我的系统是window7 64位的. 哪位路过的大神给评论一下,给点建议.帮我解决一下!在此谢谢啦!