Windows应用程序部署问题 [英] windows application deployment problem

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

问题描述

亲爱的专家,

我正在使用visual studio 2012,C#4.0和sql server management 2012进行Windows应用程序。我即将完成项目,但我无法部署在客户端机器上一样吗?

我想知道如何在客户机上部署一步一步的程序...... ??

我是否需要安装sql server management在客户端系统?我的客户有Windows Vista?所以需要采取sql server管理工作室2008 ???

请帮助bcoz我不明白怎么去...

Dear expert,
I am doing a windows application using visual studio 2012, C# 4.0 and sql server management 2012. I am on the verge of completing the project but I am not able to deploy the same on client machine??
I want to know step by step procedure about how to deploy on client machine...??
do I need to install sql server management in client system?? my client has windows vista?? so do need to take sql server management studio 2008???
please help bcoz I m not understanding how to go about it...

推荐答案

您不应在安装中包含SQL Server。有几个原因:

0)您只能出于版权原因分发SQL Server Express - 而不是SQL Server完整版。

1)他们可能已经拥有SQL Server安装在网络上。如果是这样,那么他们可能会想要使用该版本。

2)如果他们确实安装了SQL服务器并且你开始扩散SQL服务器Express实例,那么你将会惹恼数据库管理员...

3)SQl Server的单站点安装比用户控制下的一些分散版本更有可能被备份。

4)对于普通用户来说,安装和管理Sql服务器非常复杂 - 这不是一个好主意!

5)它将破坏使用Sql Server而不是SqlCE或SQLite的主要优势 - 多用户访问。如果每个人都安装了自己的SQL服务器副本,那么您将拥有数据库的多个副本,每个副本由一个人使用。这会引起一些混乱,并且(取决于你如何编写原始数据库)在实现问题时可能需要付出相当大的努力才能组合成单个实例。



如果您的应用程序需要多用户数据库访问,那么您需要在客户端知道如何使用SQL服务器的人(或者您最终会得到许多不是您的问题的支持调​​用) - 如果它只需要单个用户访问权限那么你根本不应该使用SQL服务器! SqLite,SQLCE,甚至Access都是更好的解决方案。



除此之外,使用VS将安装和部署项目添加到您的应用程序,这将照顾安装应用程序需要运行的所有内容的驴工作。请注意,Vista没有标配.NET 4,因此您需要一个合适的安装程序才能确保在应用程序运行之前安装它。
You should not include SQL Server in your installation. There are a couple of reasons:
0) You can only distribute SQL Server Express for copyright reasons - not SQL Server full version.
1) They may already have SQL Server installed on the network. If so, then they will presumably want to use that version.
2) If they do have SQL server installed and you start proliferating SQL server Express instances, you are going to annoy the heck out of the database administrator...
3) A single site installation of SQl Server is a lot more likely to be backed up than a number of scattered version under user control.
4) Sql server is quite complex for a "normal" user to install and administer - it is not a good idea!
5) It will destroy the primary advantage of using Sql Server over SqlCE or SQLite - multiuser access. If everyone installs their own copy of SQL server, then you will have multiple copies of your database, each used by a single person. This will cause some confusion, and (depending on how you wrote the original database) may take some considerable effort to combine into a single instance when the problem is realized.

If you application needs multiuser DB access then you need someone at the client end who knows how to work with SQL server (or you will end up with a lot of support calls which aren't your problem) - if it only needs single user access then you shouldn't use SQL server at all! SqLite, SQLCE, or even Access are better solutions.

Other than that, use VS to add a Setup and Deployment project to your app, and that will take care of the "donkey work" of installing everything your app needs to run. Be aware that Vista did not come with .NET 4 as standard, so you will need a proper installer to ensure it is installed before you app will run.


这篇关于Windows应用程序部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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