简体   繁体   English

在应用程序更新中需要帮助

[英]Need help in application update

I am developing an application in SQL Server using C#. 我正在使用C#在SQL Server中开发应用程序。

My database version is SQL Server 2005 Express edition, and .Net framework 2.0. 我的数据库版本是SQL Server 2005 Express版本和.Net Framework 2.0。

I want to make an updatable application. 我想提出一个可更新的应用程序。

eg whenever I do some changes in my application, then it should be available to update in all locations (like update in Mozilla Firefox). 例如,每当我在应用程序中进行某些更改时,它就应该可以在所有位置进行更新(例如Mozilla Firefox中的更新)。

But I also want that if I change some columns/stored procedures of the database, then those changes should be also updatable. 但是我也希望,如果我更改了数据库的某些列/存储过程,那么这些更改也应该是可更新的。

Please guide me how can I make that kind of setup. 请指导我如何进行这种设置。

Do you have any server or network share where you can distribute your application from? 您是否有任何服务器或网络共享可用于分发应用程序? If so, then you should take a look at ClickOnce which is available in any version of visual studio. 如果是这样,那么您应该看一下Visual Studio的任何版本中都提供的ClickOnce。 it will automatically update the client each time you publish a new version. 每次发布新版本时,它将自动更新客户端。 http://msdn.microsoft.com/en-us/library/t71a733d%28v=vs.80%29.aspx http://msdn.microsoft.com/zh-CN/library/t71a733d%28v=vs.80%29.aspx

As for the SQL updates, I'm not sure what you're asking for? 至于SQL更新,我不确定您要什么? if you use one database for many clients, then the only thing you will have to update is the client code which works with the database. 如果您将一个数据库用于许多客户端,那么您唯一需要更新的就是与该数据库一起使用的客户端代码。 in which case you will do the same thing as with any client update. 在这种情况下,您将执行与任何客户端更新相同的操作。

If you're having multiple instances of the database, you'll have to update each of them manually. 如果您有数据库的多个实例,则必须手动更新每个实例。 You'll really want to keep track of each change you've made or use a comparsion tool for that. 您真的想跟踪所做的每个更改,或为此使用比较工具。 I'm using Red Gate SQL Compare, but I assume that there are also free tools. 我正在使用Red Gate SQL比较,但我假设也有免费工具。

First you need to decide on a setup tool which will create an EXE or MSI installer for your application. 首先,您需要确定一个安装工具,该工具将为您的应用程序创建EXE或MSI安装程序。 Perhaps this list will help: http://en.wikipedia.org/wiki/List_of_installation_software 也许该列表会有所帮助: http : //en.wikipedia.org/wiki/List_of_installation_software

After that, you can integrate an updater application into that installer. 之后,您可以将更新程序应用程序集成到该安装程序中。 Here is a post with more details: What is the best way to auto update a windows application? 这是一则包含更多详细信息的文章: 自动更新Windows应用程序的最佳方法是什么?

An installer takes care of the distribution and the updater takes care of your application updates. 安装程序负责分发,更新程序负责应用程序更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM