Visual Studio安装项目-可以将.net 4与项目一起部署吗? [英] Visual Studio Setup Project - Can .net 4 be deployed with project?

查看:49
本文介绍了Visual Studio安装项目-可以将.net 4与项目一起部署吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2010为.NET 4.0 Winforms应用程序创建安装项目.

I am using Visual Studio 2010 to create a setup project for my .NET 4.0 Winforms app.

在未安装.NET 4.0运行时的计算机上运行部署的安装程序时,安装程​​序将从MS下载并安装该安装程序.一切都很好..它很好用.

When the deployed setup is run on a machine that does not have .NET 4.0 runtime installed, the installer downloads and installs the same from MS. That's all good.. it works fine.

但是,我的应用很可能是由没有Internet连接的用户安装的(实验室计算机通常没有连接).因此,我想将.NET 4.0运行时与我的项目捆绑在一起,并从本地文件安装而不是下载.

However, my app is likely to be installed by users without internet connectivity (laboratory computers often have no connectivity). Therefore, I would like to bundle the .NET 4.0 runtime with my project, and have it installed from the local file rather than downloaded.

是否仍然可以让安装程序进行自动检查和安装?使用本地捆绑文件安装?如果是这样,请问如何实现?

Is this possible to still have the installer do the auto check & install using a local bundled file ? And if so, how is it achieved please ?

令人赞赏的是Bazza

Appreciatively, Bazza

推荐答案

此MSDN指南应该为您提供帮助-它涵盖了我认为几乎所有的情况-包括您需要打包整个可再发行内容的地方.

This MSDN guide should help you - it covers I think nearly all the scenarios - including where you need to package the entire redistributable.

这篇关于Visual Studio安装项目-可以将.net 4与项目一起部署吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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