部署 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.

注意

有興趣開發跨多個平臺擴充 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