使用MSI我的应用程序安装.NET框架 [英] Installing .NET Framework with my app using MSI

查看:209
本文介绍了使用MSI我的应用程序安装.NET框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了VS2008安装项目。我的WinForms应用程序使用.NET 2.0,所以我选择了.NET 2.0 prerequisity和内置的安装项目。

I have created a setup project in VS2008. My WinForms app uses .NET 2.0, so I chose .NET 2.0 Prerequisity and built the setup project.

当我一个干净的PC上运行我的setup.msi,它正确地检测到.NET失踪,询问是否应该被安装。成功安装了.NET后,安装程序简单地退出并不会继续安装我的应用程序(我认为它应该)。

When I run my Setup.msi on a clean PC, it correctly detects that the .NET is missing and asks if it should be installed. After a successful installation of the .NET, the installer simply exits and doesn't continue with installation of my app (I think it should).

当我运行在.NET已经安装在PC上的MSI文件,我的应用程序正确安装。

When I run the MSI file on a PC with .NET already installed, my app installs correctly.

有什么办法如何安装.NET 2.0和我的应用程序一起在一个步骤?

Is there any way how to install .NET 2.0 and my app together in one step?

推荐答案

您是如何安装该产品?

安装项目将输出两个文件:

The setup project will output two files:

  • 在Windows安装程序包(.msi)和
  • 在所谓的引导程序(SETUP.EXE)

该引导程序将检查您指定,并可能任何pre-必要的presence下载并安装它,如果它尚未安装,然后继续安装应用程序 (通过调用的.msi)。 因此,你应该始终启动setup.exe安装您的应用程序,而不是.msi文件(除非你知道所有的pre-先决条件是在目标系统上)。

The bootstrapper will check for the presence of any pre-requisite that you specified and possibly download and install it if it is not installed yet and then continue to install your application (by calling the .msi). Therefore you should always start the setup.exe to install your application and not the .msi file (unless you know that all pre-requisites are on the target system).

由于Krakkos说,该引导程序将同时安装pre-必要条件和您的应用程序(即你的.msi文件)。不过,我不知道有任何配置设置,这将prevent引导程序从安装MSI。

As Krakkos says, the bootstrapper will install both the pre-requisites and your application (i.e. your .msi file). However, I'm not aware of any configuration settings which would prevent the bootstrapper from installing the msi.

要解决,你可以尝试创建一个记录您的安装,并期待在日志文件中的任何问题。

To troubleshoot you could try to create a log of your installation and look for any problems in the log file.

这篇关于使用MSI我的应用程序安装.NET框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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