如何在WiX片段中获得提升的权限来编辑注册表CLSID [英] How to get elevated permission to edit a registry CLSID, with in a WiX fragment
问题描述
我试图将Windows桌面搜索设置为使用系统默认过滤器(nlhtml.dll)以外的其他html过滤器.当我查找PersistentHandler(HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html\PersistentHandler
)时,它指向HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{eec97550-47a9-11cf-b952-00aa0051fe20}
.
I am trying to set windows desktop search to use a different html filter other than the system default filter(nlhtml.dll). When I look up the PersistentHandler (HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html\PersistentHandler
) it points to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{eec97550-47a9-11cf-b952-00aa0051fe20}
.
我想更改上述clsid的值.以下是WiX代码段
I want to change the value of above clsid. Following is the WiX snippet
<?define PersistentHandler_HtmlIFilter="eec97550-47a9-11cf-b952-00aa0051fe20"?>
<RegistryValue Action="write" Root="HKLM" Key="SOFTWARE\Classes\CLSID\{$(var.PersistentHandler_HtmlIFilter)}" Value="MY HTML Persistent Handler" Type="string" />
但是值没有改变.
关于许可; 只有TrustedInstaller可以完全控制此条目.管理员,SYSTEM和其他用户仅具有读取权限.
Regarding permission; Only TrustedInstaller has full control of this entry. Administrator, SYSTEM and other users only have read permission.
如何获得使用WiX进行注册表更改的高级权限.这是一个较大项目的一部分,我只编辑WiX脚本的一个片段(<Fragment>.. </Fragment>
).
How can I get elevated permission to make this registry change using WiX. This is part of a larger project and I am only editing a fragment of WiX script (<Fragment>.. </Fragment>
).
谢谢.
推荐答案
您不能.仅限TrustedInstaller的注册表项指示受 Windows资源保护. Windows Installer不会修改这些键.
You cannot. Registry keys limited to TrustedInstaller indicate keys that are protected by Windows Resource Protection. Windows Installer will not modify these keys.
这篇关于如何在WiX片段中获得提升的权限来编辑注册表CLSID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!