部署 Office 解决方案Deploy an Office solution

可以使用 ClickOnce 或 Windows Installer 来部署 Office 解决方案。You can deploy Office solutions by using ClickOnce or Windows Installer. 通过使用 ClickOnce,可以减少部署和更新解决方案所需的步骤数。By using ClickOnce, you reduce the number of steps that deploying and updating your solution requires. 如果使用 Windows Installer,可以控制解决方案的安装方式,以及在用户安装解决方案时,安装程序显示的页。If you use Windows Installer, you gain control of how a solution is installed and what pages the setup program displays when users install your solution.

Note

有兴趣开发跨多个平台扩展 Office 体验的解决方案?Interested in developing solutions that extend the Office experience across multiple platforms? 查看新的 " Office 外接程序" 模型Check out the new Office Add-ins model. 与 VSTO 外接程序和解决方案相比,Office 外接程序的占用空间较小,可以使用几乎任何 web 编程技术(例如 HTML5、JavaScript、CSS3 和 XML)生成它们。Office Add-ins have a small footprint compared to VSTO Add-ins and solutions, and you can build them by using almost any web programming technology, such as HTML5, JavaScript, CSS3, and XML.

使用 ClickOnce 部署解决方案Deploy a solution by using ClickOnce

使用 ClickOnce 部署解决方案时,可将其发布到一个中心位置,用户能够从中安装并运行解决方案。When you deploy a solution by using ClickOnce, you publish it to a central location where users can install and run it. 可以更新解决方案,而无需将新的安装程序分发给用户。You can update the solution without having to distribute a new setup program to users. 此部署选项更简单,但无法显示用户自定义安装页。This deployment option is simpler, but you can't show users custom setup pages. 此外,必须在包含多个用户的任何计算机上多次安装解决方案。Also, solutions must be installed multiple times on any computer that has more than one user. 请参阅使用 ClickOnce 部署 Office 解决方案See Deploy an Office solution by using ClickOnce.

使用 Windows Installer 部署解决方案Deploy a solution by using Windows Installer

使用 Windows Installer 部署解决方案时,可将安装程序分发给用户,用户将使用此程序安装解决方案。When you deploy a solution by using Windows Installer, you distribute a setup program to users, and users install the solution by using that program. 安装程序可以同时为一台计算机上的所有用户安装解决方案,而非仅当前用户。The setup program can install a solution for all users of a computer at the same time, rather than the current user only. 还可以更好地控制在用户安装解决方案时显示给用户的选项。You also have a bit more control over options that appear to users when they install your solution. 例如,可以显示许可协议或者使用户安装解决方案的特定组件。For example, you can show a licensing agreement or enable users to install specific components of a solution. 不过,如果更新解决方案,必须分发一个新的安装程序。However, if you update the solution, you must distribute a new setup program. 请参阅使用 Windows Installer 部署 Office 解决方案See Deploy an Office solution by using Windows Installer.

请参阅See also