是否可以为Outlook加载项构建msi安装程序,以便它可以作为非管理员用户运行? [英] Is it possible to build msi installer for Outlook Add-in so that it can be run as non-admin user?

查看:146
本文介绍了是否可以为Outlook加载项构建msi安装程序,以便它可以作为非管理员用户运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发一个用于Outlook加载项的msi安装程序。我们正在尝试构建它以按用户群而不是每台计算机进行安装。它需要由用户自己运行。

I'm working on an msi installer which is for an Outlook Add-in. We are trying to build it to install per user base instead of per machine. And it would need to be run by the user itself.

它是用C ++编写的,用VS2010构建。我在dll输出中看到有一个名为"Register"的选项。它最初设置为vsdrpCOMSelfReg,当用户运行msi安装程序时,它需要管理员权限。

It's written in C++ and build with VS2010. I saw in the dll output there is an option called "Register". It was originally set to vsdrpCOMSelfReg and when the user runs the msi installer, it would require admin permission.

如果我将其更改为vsdrpCOM或vsdrpDoNotRegister,则可以与非管理员用户一起安装但Outlook不会加载它。我需要以管理员用户身份运行以下命令才能使Outlook加载它。

If I changed it to vsdrpCOM or vsdrpDoNotRegister, it can be installed with non-admin user but the Outlook won't load it. And I need to run the following command as admin user to make Outlook load it.

regsvr32 xxx.dll

regsvr32 xxx.dll

我在线搜索了一下像regsvr32只需要管理员权限

I did some search online and looks like the regsvr32 simply requires the admin rights

此外,我已经让程序只写入当前用户的个人资料文件夹,并将注册表项写入HKCU。只有一些注册管理机构(相关的CLSID)写入HKCR。我试图改变这一点写入HKCU,但那不起作用。 

Also I've made the program to write only to the current user's profile folders and write the registry keys to only HKCU. Only some registries (related CLSID) are written to HKCR. I've tried to change that to write into HKCU but that won't work. 

有没有人知道是否有办法解决这个问题?或者任何人都可以确认它总是需要管理员权限来安装Outlook加载项?

Does anyone know if there's any way to go around this? Or can anyone confirm that it would always require admin rights to install Outlook Add-in?

谢谢

推荐答案

当然,您的DllRegisterServer(导出)功能的实现可以随心所欲 - 如果HKLM可以安装在HKCU不能为你的插件添加Outlook特定的密钥。
Sure, your implementation of the DllRegisterServer (exported) function can do whatever it pleases - it can install in HKCU if HKLM does not work as well as add Outlook specific keys for your addin.


这篇关于是否可以为Outlook加载项构建msi安装程序,以便它可以作为非管理员用户运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆