Deploying a Outlook 2007 Addin created from Visual Studio 2010 for All Users

戏子无情 提交于 2019-12-12 17:45:15

问题


I'm trying to deploy a Outlook 2007 addin for all users in windows 7. I developed the addin using visual studio 2010 to simply to show a message box on load.

private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            MessageBox.Show("test addin");
        }

Since it is stated that creating a installer using Publish(ClickOnce) feature will not install the addin to all users, i tried creating an MSI setup project following the steps given in, http://msdn.microsoft.com/en-us/library/ff937654.aspx#Create

Since I'm targeting only Outlook 2007, I executed only the steps up to configuring the registry.

Once I created the setup and installed it (selecting Everyone), the addin does not run initially in outlook. when I checked it in Trust Center, I could see my addin listed in the Inactive Application Addins Section.

Once I checked in the system registry(using regedit), all the Registry Key are properly included under HKEY_LOCAL_MACHINE as well.

(When I install it Selecting Only me, the addin works fine.)

Can anyone please help me to get this working for all users. Thanks.


回答1:


There is a second part to the tutorial which shows how to handle trust as part of the installation. You can find it here.



来源:https://stackoverflow.com/questions/8713120/deploying-a-outlook-2007-addin-created-from-visual-studio-2010-for-all-users

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