没有.NET框架4机上安装WPF应用程序 [英] Installing WPF application on machine without .NET Framework 4

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

问题描述

我在使用Visual Studio 2010创建安装程序包安装WPF应用程序。我可以看到,我可以添加.NET框架4.0为pre-必要的,但我怎么让他在没有人工干预的自动运行?

I am using Visual Studio 2010 to create a Setup package to install a WPF application. I can see that I can add the .NET framework 4.0 as a pre-requisite, but how do I get his to run automatically without manual intervention?

我必须创建一个小程序(即目标框架1.1,我认为大多数机器有1.1),可检测,如果.NET Framework 4.0中是存在的,如果不安装它悄无声息,或者我可以让安装程序执行此操作。

Do I have to create a small program (that targets framework 1.1 as I assume most machines have 1.1) that detects if .NET framework 4.0 is there and if not install it silently, or can I get the installer to do this.

我也有安装OLEDB 12驱动程序,因为我连接到一个Access 2007数据库,所以我也必须运行该安装我的应用程序运行之前。

I also have to install the OLEDB 12 drivers because I'm connecting to an Access 2007 database, so I will also have to run this installer before my application is run.

我不希望安装下载和安装框架,我想包括框架可再发行的安装程序。

I don't want the install to download and install the framework, I want to include the framework redistributables with the setup.

任何帮助将是AP preciated。

Any help would be appreciated.

感谢

推荐答案

您想要做的Bootstrap,使用Visual Studio 2010和.NET Framework 4,作为解释的这里

You want to do bootstraping, using visual studio 2010 and .net framework 4, as explained here.

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

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