问题描述
当我正与.NET应用程序文件关联我还没有发现一种方法来设置它没有UAC弹出一个确认对话框。
When I was working with file association in a .NET application I hadn't had found a way to set it without UAC popping up a confirmation dialog.
今天,当我打开uTorrent的,抬头的文件关联,我发现,您可以启用(写入注册表)未经UAC任何确认。
Today, when I opened uTorrent and looked up for file association, I've found that you can enable (writing to registry) without any confirmation from the UAC.
这怎么可能? uTorrent是不充当管理员。
How is that possible? uTorrent is not running as an admin.
编辑:
嗯,我刚刚发现与进程监视器(Sysinternals的)什么uTorrent.exe确实是创造了几个键(的uTorrent 和的.torrent ),但在 HKCU (<$ C C $> HKEY_CURRENT_USER ),而不是在 HKEY_CLASSES_ROOT
。反正我也有 HKEY_CLASSES_ROOT
这些键...也许在这些安装程序。不知道。
Well, I have just discovered with Process Monitor (Sysinternals) that what uTorrent.exe does is to create a few keys (uTorrent and .torrent) but in HKCU (HKEY_CURRENT_USER
), not in HKEY_CLASSES_ROOT
.Anyways I also have those keys in HKEY_CLASSES_ROOT
... maybe the installer created those. Not sure.
推荐答案
请参阅这文章在MSDN 对全球注册表被虚拟化,这样的更改是唯一有效的为您的用户配置文件。
See this article in MSDN about the global registry being virtualized so that the changes are only effective for your user profile.
这篇关于如何更改文件关联,没有UAC的确认?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!