Code example for automatic client upgrade [C/S]

Source: Internet
Author: User
ArticleDirectory
  • Server
  • Client

I often find that I have asked the client to automatically update the problem. I sorted out a common method I used to see and put it online for your use.

DetailsCodeHttp://cid-56b433ad3d1871e3.office.live.com/self.aspx/.Public/%e8%87%aa%e5%8a%a8%e6%9b%b4%e6%96%b0%e5% AE %a2%e6%88%b7%e7% AB %af%e4%be%8b%e5%ad%90.rar

System Structure Server

Automatic Update Service: This is deployed on the Web server. If a new version is available, you only need to put it under the automatic update service \ app_data \ update directory.

[Note: each time you update a version, you need to update the software version, that is, the assemblyinfo. CS file of the solution, similar to the following content.

[Assembly: assemblyversion ("1.0.0.1")]

[Assembly: assemblyfileversion ("1.0.0.1")]

Change this content when updating the version.

]

Client

MyApp: You need to check the version [Reference "Auto Update Service"] at each startup, and decompress and update the version when a new version is available.

For details, refer to the detailed code.

[I cannot remember where this method was originally found. If you posted it, please leave a message and I will add your copyright information]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.