gpt4 book ai didi

c++ - 使用 Visual Studio 2015 时如何使用 MSI 分发 VC redist?

转载 作者:行者123 更新时间:2023-12-01 14:44:52 25 4
gpt4 key购买 nike

我们刚刚切换到 Visual Studio 2015,但我们在应用程序的部署中发现了一个问题。

我们使用 Wix/MSI 进行部署,直到现在我们使用合并模块来分发 VC redist。

但是现在我们有一个问题,我们的应用程序需要 ucrtbase.dll .有一个新的通用 CRT 据此article它不包含在任何合并模块中。

在上述文章中,他们说:

There will not be a merge module for the Universal CRT. If you currently use the CRT merge modules and still want to deploy the Visual C++ libraries centrally, we recommend that you move to the above mentioned Windows Update package or to the VCRedist. Alternatively, you may choose to link statically to the Universal CRT and the Visual C++ libraries



这是否意味着我们无法使用 MSI 分发 C++ 运行时,因为它无法运行可执行文件 (VCRedist.exe)?或者有没有办法在 中编译我们的项目? Visual Studio 2015 所以它不需要这个通用 CRT 吗?

先感谢您。

最佳答案

如果您使用 WiX,您可以切换到 Burn 并在安装过程中运行 VC Redist 包。

您引用的文章还说支持 Dll 的应用程序本地部署,因此您可以安装适当的 Dll 而无需重新分发。

我会使用 Burn 来安装官方的 redist——如果出现问题,这是 Mocrosoft 可以为这些 Dll 提供服务的唯一方法。如果您使用本地应用程序或您自己的 Dll 拷贝,如果这些 Dll 中存在安全问题,您可能需要发布补丁或升级。

关于c++ - 使用 Visual Studio 2015 时如何使用 MSI 分发 VC redist?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34207400/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com