为了安装visual studio安装程序的安装项目,我需要在没有Visual Studio版本的PC上添加什么? [英] What do I need to add to PC with no version of visual studio, in order to install a setup project of visual studio installer?

查看:77
本文介绍了为了安装visual studio安装程序的安装项目,我需要在没有Visual Studio版本的PC上添加什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是由Visual Studio Installer从Visual Studio项目创建的一个setup.exe文件。

当我在已安装任何Visual Studio版本的PC上安装它时,应用程序正常运行,当我安装时它在没有Visual Studio版本的PC上,当我尝试打开一个对话框或类似的东西时应用程序崩溃。



我尝试了什么:



如果我安装了visual studio它可以解决问题。



任何人都知道具体的应该添加用于安装Visual Studio Installer项目的功能?

如何在不安装Visual Studio的情况下解决该问题?

I created a setup.exe file from Visual Studio project by Visual Studio Installer.
When I install it on PC that has already any version of Visual Studio the application works properly, and when I install it on PC with no version of Visual Studio the application crash when I try to open a dialog box or something like that.

What I have tried:

If I install visual studio it solve the problem.

Any one knows about specific feature that should be added for installing project of Visual Studio Installer?
How can I solve that issue without installing Visual Studio?

推荐答案

应用程序崩溃它可能会给你一个异常消息,可以帮助你确定缺少什么。如果没有,那么看看PC事件日志,看看有什么缺失。



这些天大多数PC都预先安装了.NET,但如果你使用的是古代野兽然后你可能需要安装它 - 制作你的安装的先决条件。无需安装Visual Studio。



请注意,如果您已卸载Visual Studio,则可能需要卸载现在需要的库 - 请确保版本为。 NET库已完全修补(最新)。



如果您的对话框或类似内容来自第三方,那么您需要包含设置中这些控件的库。



还要检查项目的参考部分,看看是否还有其他库。
When the application crashes it will probably give you an exception message that would help you determine what is missing. If not then have a look at the PC event log to see what is missing.

Most PC's these days will have .NET pre-installed but if you are using some ancient beast then you may have to install it - make a pre-requisite of your install. There is no need to install Visual Studio.

Be aware that if you have uninstalled Visual Studio you may have uninstalled libraries that you now need - make sure the version of .NET libraries are fully patched (up to date).

If your "dialog box or something like that" is from a third-party then you will need to include the libraries for those controls in your set-up.

Also check the references section of your project to see if there are any other libraries you need.


关于我的问题还有另外一点,

安装文件是MFC应用程序

当我们尝试打开文件对话框时,似乎发生了崩溃MFC。

MFC140.dll(对于VS2015)存在于System32文件夹中,我应该添加哪些与MFC相关的内容?
I have another point about my problem,
The installation file is of MFC application
It seems that the crash happens when we try to open file dialog of MFC.
The MFC140.dll (for VS2015) is existing in the System32 folder, what else that related to MFC should I add?


这篇关于为了安装visual studio安装程序的安装项目,我需要在没有Visual Studio版本的PC上添加什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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