如何使我的C#应用​​程序的安装? [英] How to make an installer for my C# application?

查看:142
本文介绍了如何使我的C#应用​​程序的安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个应用程序( C#,的Windows~~V形式中)在<一个href=\"http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2008\">Visual Studio 2008,现在我想使这个应用程序的安装程序。如何才能做到这一点?

我希望我的安装程序

我该怎么办呢?


解决方案

  1. 新安装项目添加到您的解决方案。

  2. 从你想安装的所有项目中添加的目标。

  3. 配置pre-要求,并选择检查.NET 3.5和SQL前preSS选项。选择从那里必须安装缺少的组件的位置。

  4. 配置您的安装设置 - 公司名称,版本,版权等

  5. 建立和去!

I have created an application (C#, Windows Forms) on Visual Studio 2008, and now I want to make installer of this application. How can this be done?

I want my installer to

  • Copy all the files that my application is using to a user chosen path (copy the files to the chosen, some for the server-side application and some for the client side).
  • Also install .NET 3.5
  • Check for SQL Server or SQL Server Express Edition

How can I do it?

解决方案

  1. Add a new install project to your solution.
  2. Add targets from all projects you want to be installed.
  3. Configure pre-requirements and choose "Check for .NET 3.5 and SQL Express" option. Choose the location from where missing components must be installed.
  4. Configure your installer settings - company name, version, copyright, etc.
  5. Build and go!

这篇关于如何使我的C#应用​​程序的安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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