为VSTO Outlook加载项创建(ClickOnce)安装程序 [英] Creating a (ClickOnce) setup for VSTO Outlook Add-in
问题描述
因此,我创建了一个Outlook加载项,并使用单击一次安装程序对其进行了部署.
当用户是管理员时,安装程序运行正常,否则:不行.
使用运行方式..."运行安装程序并以admin身份登录,但是该加载项安装在admin(而不是当前用户)下.该插件不会显示在Outlook中.
我尝试遵循此指南: 解决方案
- 创建一个本地管理员帐户,例如TESTAccount.
- 通过单击一次为该用户安装插件.
- 以管理员身份重新登录,然后将TESTAccount复制到默认用户中.
现在,当任何人登录计算机时,都会从默认配置文件为他们创建一个新的配置文件,因此将安装插件.
So I created an Outlook Add-in and used the click-once setup to deploy it.
The setup runs fine when the user is administrator, but otherwise: no go.
Running the setup with "run as..." and logging in as admin works, but than the add-in is installed under the admin, not the current user. The addin doesn't show up in outlook.
I tried following this guide: http://blogs.msdn.com/mshneer/archive/2008/04/24/deploying-your-vsto-add-in-to-all-users-part-iii.aspx
But I get stuck at part I: http://blogs.msdn.com/mshneer/archive/2007/09/04/deploying-your-vsto-add-in-to-all-users-part-i.aspx
I follow the examples and start excel as described:
Now start Excel application. Examine the registry keys in HKCU hive e.g. you will find two interesting registry keys that appear under your HKCU hive:
- HKCU\Software\Microsoft\Office\TestKey registry key containing registry value TestValue
- You now also have HKCU\Software\Microsoft\Office\12.0\User Settings\TestPropagation registry key with Count value set to 1
But on my machine, the keys are not created... What can I try next?
- Create a local admin account say TESTAccount.
- Install the addin using click once for that user.
- Re-login as administrator and copy TESTAccount into default user.
Now so when anybody logs into the machine a new profile would be created for them from default profile and so will have the addin installed.
这篇关于为VSTO Outlook加载项创建(ClickOnce)安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!