How to change file association without UAC confirmation?

点点圈 提交于 2019-12-06 13:17:12

问题


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.

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.

How is that possible? uTorrent is not running as an admin.

Edit:

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.


回答1:


See this article in MSDN about the global registry being virtualized so that the changes are only effective for your user profile.



来源:https://stackoverflow.com/questions/562386/how-to-change-file-association-without-uac-confirmation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!