部署本机桌面应用程序 (Visual C++)Deploying Native Desktop Applications (Visual C++)

部署是用于分配要安装到其他计算机上的已完成应用程序或组件的进程。Deployment is the process by which you distribute a finished application or component to be installed on other computers. 当在开发人员计算机上创建了应用程序时开始部署规划。Deployment planning starts when an application is created on a developer's computer. 当已安装并准备好在用户计算机上运行应用程序时,部署结束。Deployment ends when the application is installed and ready to run on a user's computer.

Visual Studio 提供用于部署 Windows 应用程序的不同技术。Visual Studio provides different technologies for deploying Windows applications. 其中包括 ClickOnce 部署和 Windows Installer 部署。These include ClickOnce deployment and Windows Installer deployment.

  • ClickOnce 可用于部署面向公共语言运行时 (CLR) 的 C++ 应用程序 - 可以是混合程序集、纯程序集和可验证的程序集。ClickOnce can be used to deploy C++ applications that target the common language runtime (CLR)—mixed, pure, and verifiable assemblies. 尽管可以使用 Windows Installer 部署托管的应用程序,但仍建议使用 ClickOnce,因为它利用 .NET Framework 安全功能(如清单签名)。Although you can use Windows Installer to deploy a managed application, we recommend that you use ClickOnce because it takes advantage of .NET Framework security features such as manifest signing. ClickOnce 不支持本机 C++ 应用程序的部署。ClickOnce does not support deployment of native C++ applications. 有关详细信息,请参阅Visual c + + 应用程序的 ClickOnce 部署For more information, see ClickOnce Deployment for Visual C++ Applications.

  • Windows Installer 技术可以用于部署本机 C++ 应用程序或面向 CLR 的 C++ 应用程序。Windows Installer technology can be used to deploy either native C++ applications or C++ applications that target the CLR.

文档本部分中的文章讨论如何确保本机 Visual C++ 应用程序可在任何提供受支持的目标平台的计算机上运行,安装包内必须包括哪些文件以及重新分发应用程序所依赖的组件的建议方式。The articles in this section of the documentation discuss how to ensure that a native Visual C++ application runs on any computer that provides a supported target platform, which files you must include in an installation package, and the recommended ways to redistribute the components that your application depends on.

本节内容In This Section