简体   繁体   English

使用集成了 VC++ 2015 环境的 Visual Studio 2015 Community Edition 为应用程序制作安装程序

[英]Making an installer for the app with Visual Studio 2015 Community Edition integrating VC++ 2015 Environment in it

I have no problems creating installer for my app using free Visual Studio 2015 Community Edition and a plugin for it , however I have absolutely no luck integrating latest Visual C++ Runtime Environment into installer.我使用免费的 Visual Studio 2015 社区版及其插件为我的应用程序创建安装程序没有问题,但是我绝对没有运气将最新的 Visual C++ 运行时环境集成到安装程序中。

I know the recommended way is to include MSM module, which I did, but still no luck: when deployed on some machine, the app got installed properly, but the damn Runtime Environment is not.我知道推荐的方法是包含 MSM 模块,我做到了,但仍然没有运气:当部署在某些机器上时,应用程序安装正确,但该死的运行时环境不是。

I am about to drop the whole Visual Studio thing and go back to MinGW, since I use Qt.我即将放弃整个 Visual Studio 并回到 MinGW,因为我使用 Qt。 I like it, but the official version is 32-bit only which was the single reason to try Visual Studio.我喜欢它,但官方版本只有 32 位,这是尝试 Visual Studio 的唯一原因。

Any solutions?任何解决方案?

Right-click the setup in solution explorer and select Properties, then Prerequisites, then check the Create setup program to install prerequisites.右键单击解决方案资源管理器中的安装程序并选择属性,然后选择先决条件,然后选中创建安装程序以安装先决条件。 That shows a list of prerequisites that includes the VC 14 C++ runtimes (VS 2015).这显示了包含 VC 14 C++ 运行时 (VS 2015) 的先决条件列表。 You'll end up with a setup.exe that will install the marked prerequisites and then install your MSI.您最终会得到一个 setup.exe,它将安装标记的先决条件,然后安装您的 MSI。

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

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