如何防止非管理员用户禁用 Outlook 2007Addin?
根据 Office 2007 系统的 MSDN 文档,office Addins 是在 HKCU 下注册的,而不是在 HKLM 下注册的。 我有一个 Outlook 2007 插件,它也在 HKCU 下注册。
但问题是,即使非管理员用户也可以禁用该插件,因为它位于 HKCU 中。 然而,对于 Outlook2003 插件,这是不可能的,因为它已在 HKLM 中注册。
我还看到一些在 HKLM 下注册的 Outlook 2007 插件,例如 Microsoft VBA for Outlook Addin、Microsoft Outlook Mobile 服务。
当非管理员用户尝试禁用它时,Outlook 会显示一条弹出消息,指出这些插件已在 HKLM 中注册,并且用户无权禁用它。
那么如何在 HKLM 下注册我的 Outlook 2007 插件呢?
As per the MSDN documentation with the Office 2007 system, office Addins are registered under HKCU and not under HKLM. I have an Outlook 2007 addin which is also registered under HKCU.
But the problem is that, even non admin users can also disable the addin since it is in HKCU. However with Outlook2003 addin this was not possible because it got registered in HKLM.
I also see some of the Outlook 2007 addins that are registered under HKLM like Microsoft VBA for Outlook Addin, Microsoft outlook Mobile service.
When a non admin user tries to disable it, outlook displays a pop up message saying that these addins are registered in HKLM and user does not have the permission to disable it.
So How can I register my Outlook 2007 addin under HKLM like these?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在部署 VSTO 插件时也遇到同样的问题。 我认为没有办法阻止它。 我们已就同一问题致电 MS PSS。
I have the same problem depoying VSTO addins. I dont think that there is an way to stop it. We have had call with MS PSS around the same issue.
您是否考虑过向部署/设置中添加代码来更改注册表项的权限,以便只有管理用户才能禁用它?
另一个问题是,如果您需要作为用户进行故障排除,会发生什么情况? 您将如何解决您的加载项可能导致的潜在问题?
只是我的 0.02 美元。
拉里
Have you thought about adding code to the deployment/setup that changes the permissions of the registry key so that only administrative users can disable it?
The other question is what happens if you need to troubleshoot as the user? How would you go about disabling a potential problem that your add-in may be causing?
Just my $.02.
Larry