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

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

问题描述

我在 C# 中使用 MSVC 2010 Express 和 Forms/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,我就可以用 .dll 发送 .exe 的 zip 文件并且它可以工作.但是,如果他们根本没有 .NET(在 Win XP 机器上)?或者他们有较低版本的.NET?我应该让他们从 Internet 安装 .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 的 express 版本,您可以使用一些免费工具,例如 WiX 或 Inno Setup.WiX 可能是一个难以开始的选择,但具有很大的灵活性.有教程和示例项目可以修改以适应您的需求.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 框架,以及其他条件.您还可以将 .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天全站免登陆