在桌面上部署.NET(C#)exe应用程序 [英] Deploy .NET (C#) exe application on desktops

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

问题描述



应用程序由一些私有程序集(可能是DLL)和.exe文件组成,可以使用MSVC 2010 Express在C#中开发应用程序。它使用.NET 4功能。



如何将此应用程序部署到其他计算机?当然,如果他们有.NET 4,我可以发送.exe与.dlls zip并且它的工作。但是如果他们根本没有.NET(在Win XP机器上)?或者也许他们有较低版本的.NET?我应该指出他们从互联网上安装.NET还是用我的应用程序打包,或者什么?



谢谢

解决方案

您应该创建一个安装程序包。如果您正在使用visual studio的快速版本,您可以使用一些免费的工具,如WiX或Inno Setup。 WiX可能是一个困难的选择,但具有很大的灵活性。有修改的教程和示例项目,以适应您的需要。
http://www.tramontana.co.hu/wix/



此工具创建安装程序,可以检查用户计算机上是否安装了某些版本的.NET框架,以及其他条件。您还可以在您的软件包中包含.NET可再发行组件,或指向用户下载并安装。


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

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

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?

Thanks

解决方案

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/

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天全站免登陆