C # Client software automatic upgrade program

Source: Internet
Author: User

Program Interface:

This procedure explains

* Automatic updating of generic programs. It's best to put it in the same sibling directory as the program that needs to be updated automatically

* Automatic update with file interface. autoupdate.config files must be available at the same level in this program

* The file format is:

* Url= get upgrade to configuration file

* cmd= to execute after upgrade is complete

Url=url1$url2$url3$url4

Cmd=cmd.exe

* The automatic upgrade program checks the URL in order, if the first one is invalid, select the second, and so on.

* After the upgrade is completed, execute the command written at CMD.

If the URL is checked to be valid, the returned content of the URL is obtained

* Program to obtain the format of the returned content should be downloaded to the file address $ saved in the local file name

Ur1$filename1

Url2$filename2

* The program downloads the URL one by one and saves it to the corresponding directory in the upgrade program.

* If there is a autoupdate.error in the same directory to explain the upgrade process is wrong, the file is written in the wrong content.

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.