部署.NET(C#)在台式机上的EXE应用 [英] Deploy .NET (C#) exe application on desktops

查看:132
本文介绍了部署.NET(C#)在台式机上的EXE应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发C#与MSVC 2010例preSS应用程序,使用表单/ WPF /等。

I develop application in C# with MSVC 2010 Express, with Forms/WPF/etc.

应用程序包括一些私人组件(也许DLL)和.exe文件。它使用.NET 4的功能。

Application consist of some private assemblies (maybe DLLs) and .exe file. It uses .NET 4 features.

我怎么这个应用程序部署到其他计算机?当然,如果他们有.NET 4中我只可以发送.exe文件压缩与.DLL文件和它的工作。但是,如果他们没有在所有的.NET(在Win XP机器)?也许他们有更低的.NET版本?我要指出他们从互联网上安装.NET或它与我的应用程序,或者什么包?

How I deploy this application to other computers? Of course if they have .NET 4 I just can send zip of .exe with .dlls and it work. But if they don't have .NET at all (on Win XP machine)? Or maybe they have lower version of .NET? Should I point them to install .NET from internet or package it with my app or what?

感谢

推荐答案

您应该创建一个安装程序包。如果您使用Visual Studio的前preSS版本,你可以使用一些免费的工具,这个像维克斯或Inno Setup的。维克斯也许是一个困难的选择入手,但有一个很大的灵活性。有教程和示例项目进行修改,以使其适应您的需求。 http://www.tramontana.co.hu/wix/

You should create a installer package. If you are using the express versions of visual studio, you can use some free tools for this like WiX or Inno Setup. WiX is perhaps a difficult option to start with, but has a lot of flexibility. There are tutorials and example projects to modify to adapt them to your needs. http://www.tramontana.co.hu/wix/

该工具创建的安装程序可以检查是否有特定版本的.NET Framework安装在用户的计算机上,在其他条件。您还可以在.NET可再发行在你的包,或者指向用户下载并安装它。

This tools create installers that can check if a certain version of the .NET framework is installed on the user computer, among other conditions. You can also include the .NET redistributable in your package, or point the user to download and install it.

这篇关于部署.NET(C#)在台式机上的EXE应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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