简体   繁体   English

从URL安装VSTO插件

[英]Install VSTO plugin from a URL

I am trying to make my users install my Outlook plugin from a URL. 我试图让我的用户从URL安装我的Outlook插件。 I have this in Visual Studio. 我在Visual Studio中有这个。 I have set the publishing folder to a local folder and then through FTP I upload the setup.exe, .vsto file and Application files to the InstallOutlookPlugin folder on the website. 我已将发布文件夹设置为本地文件夹,然后通过FTP将setup.exe,.vsto文件和应用程序文件上传到网站上的InstallOutlookPlugin文件夹。 I have never done this before. 我以前从未做过。

My question is, how will the users be able to install this? 我的问题是,用户将如何安装它? One option is to access the setup.exe file, download and run it, but most times their firewall will block that and they won't be able to run the file. 一种选择是访问setup.exe文件,下载并运行它,但是大多数情况下,它们的防火墙会阻止该文件,并且他们将无法运行该文件。 The project is signed by my own certificate. 该项目由我自己的证书签名。

项目性质

As far as I know, this is a limitation of ClickOnce deployment. 据我所知,这是ClickOnce部署的局限性。 The user must download the setup.exe and run it. 用户必须下载setup.exe并运行它。 You can help by signing the setup.exe with the same certificate using signtool: 您可以使用signtool使用相同的证书对setup.exe进行签名,以提供帮助:

signtool sign /f "certificate.pfx" /p "password" "setup.exe"

If they run into security issues, they can try adding the installation url to the Internet Explorer > Internet Options > Security > Trusted Sites list. 如果遇到安全问题,他们可以尝试将安装URL添加到Internet Explorer> Internet选项>安全>受信任的站点列表中。

Other than that, you could switch up your deployment tactics to use a full installer, like InstallShield. 除此之外,您可以更改部署策略以使用完整的安装程序,例如InstallShield。 Here are instructions: 以下是说明:

Deploying an Office Solution by Using Windows Installer 使用Windows Installer部署Office解决方案

Note: I have tried both deployment tactics and the InstallShield approach does not seem to work in Outlook 2007, which was a requirement for me. 注意:我已经尝试了两种部署策略,但是InstallShield方法在Outlook 2007中似乎不起作用,这对我来说是必需的。 So, I went with ClickOnce and just tell people to add the url to the trusted sites list if needed. 因此,我选择了ClickOnce,只是告诉人们在需要时将URL添加到受信任的站点列表中。 Also, ClickOnce can only install on the user level, you will need to use Microsoft Installer to install for all users on computer. 另外,ClickOnce只能在用户级别安装,您将需要使用Microsoft Installer为计算机上的所有用户安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM