在安装程序中包含运行时(vcredist_x86.exe) [英] Including a runtime (vcredist_x86.exe) as part of an installer

查看:33
本文介绍了在安装程序中包含运行时(vcredist_x86.exe)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将运行时作为项目安装程序的一部分.

I need to include a runtime as part of a project installer.

我遇到了麻烦,因为出现了一个错误消息,指出安装已经在进行中",原因是我实际上是试图从msi内部运行一个msi.

I was having trouble including it, as an error saying "an installation is already in progress" was appearing, due to the fact that I was essentially trying run an msi from within an msi.

我设法通过将其包含在"OnAfterInstall"事件中来解决此问题,但是现在看来它不是在升级中安装的,而只是在全新安装中安装的.

I managed to get over this by including it in the "OnAfterInstall" event, however it appears now that it is not being installed on upgrades, only on fresh installs.

任何人都可以提供任何建议吗?

Can anyone offer any advice?

谢谢

推荐答案

您未指定Visual C ++运行时的版本,但这可能有效:

You don't specify what version of the Visual C++ Runtime, but this may work:

Visual Studio安装程序项目提供了一个先决条件设置,该设置已预先填充了常用组件列表.这些是.mst文件,因此可以将它们合并到您的安装程序中.要进入先决条件屏幕,请右键单击您的安装程序项目->属性->先决条件.选中列表中相应的框,然后更改底部的选项,以将必备组件包括在安装程序中.

Visual Studio Installer Projects provide a prerequisites setting which is pre-populated with a list of common components. These are .mst files, so they can be merged into your installer. To reach the prerequisites screen, right-click your installer project -> Properties -> Prerequisites. Check the appropriate box in the list and change the option at the bottom to include the prerequisite in the setup program.

这篇关于在安装程序中包含运行时(vcredist_x86.exe)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆