Internet Explorer:在没有管理员权限 (UAC) 的情况下安装工具栏
我知道可以在没有管理员用户权限的情况下将应用程序安装到用户空间。
最典型的例子是 Google Chrome,它可以即时安装并顺利运行。
我开发 IE 工具栏(IE 7 及更高版本)的同事说,如果没有管理员帐户,我们无法将工具栏扩展安装到 IE。
这是正确的说法,还是他弄错了?或者这仅在某些 Windows 版本上是正确的?
INFO
我们需要注册COM对象(DLL库),并写入HKEY_CLASSES_ROOT\CLSID\
和HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Toolbar
>
是否需要这些位置,或者我们可以通过其他方式为单个用户注册工具栏组件?
I know it is possible to install application to userspace without having permissions of administrator user.
Most shining example is Google Chrome which can be installed on-the-fly and runs smoothly then.
Colleague of mine which develops IE Toolbar (IE 7 and higher) say, we cannot install toolbar extension to IE without having administrator account.
Is it right statement, or he has been mistaken? Or it is truth only on some Windows versions?
INFO
We need to register COM object (DLL library), and write to HKEY_CLASSES_ROOT\CLSID\
and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Toolbar
Are these locations needed, or we can register toolbar component for single user some other way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于您要进行哪种注册。
如果注册是在 HKEY_CLASSES_ROOT 中完成的,则您可以修改该注册表配置单元,而无需提升权限(您可能必须修改 HKEY_CURRENT_USER\Software\Classes)。
如果注册是在 HKEY_LOCAL_MACHINE\Software 或 HKEY_LOCAL_MACHINE\System 中完成的,则需要执行提升。
注册 COM 对象不需要管理权限,您可以将它们安装到 HKCU\Software\Classes(HKCR 是通过采用 HKLM\Software\Classes 并覆盖 HKCU\Software\Classes 创建的)。
但是,修改 HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions(创建工具栏所需)将需要管理权限。
我不知道还有另一种添加工具栏组件的机制。
It depends on what kind of registration you're doing.
If the registration is done in HKEY_CLASSES_ROOT, then you can make modifications to that registry hive without requiring elevation (you may have to modify HKEY_CURRENT_USER\Software\Classes).
If the registration is done in HKEY_LOCAL_MACHINE\Software or HKEY_LOCAL_MACHINE\System, then it requires elevation to be performed.
Registering COM objects does not require administrative permissions, you can install them to HKCU\Software\Classes (HKCR is created by taking HKLM\Software\Classes and overlaying HKCU\Software\Classes).
However modifying HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions (required to create toolbars) will require administrative permissions.
I am not aware of another mechanism to add toolbar components.
与 Chrome 不同,Internet Explorer 是 Windows 操作系统的核心部分,我相信您的同事是正确的。但我希望事情不是这样的。 Chrome 成为全面更好的浏览器的另一个原因。
Unlike Chrome, Internet Explorer is a core part of the Windows OS and I believe your colleague is correct. I wish it wasn't this way though. Yet another reason why Chrome is an all around better browser.