Automatic Update source Download (c#.net)

Source: Internet
Author: User
Tags rar

Because of the inconvenient use of the update program provided by Microsoft, this program is written again. This program is a year ago I wrote a program, at that time in the development of a CS version of the quotation system, because of the development process in haste, The code might be a little bit too spec. This program compiles only after the AutoUpdate.exe file is updatelist.xml with a configuration file, which upgrades and updates the local program files primarily through the version number of the local program and the server-side program files.
The contents of the Updatelist.xml file are as follows:

<?xml version= "1.0" encoding= "gb2312"?>
<AutoUpdater>
<description>application autoupdate</description>
<Updater>
<Url>http://10.0.5.98/SoftUpdate/</Url>
<LastUpdateTime>2005-09-05</LastUpdateTime>
</Updater>
<application applicationid= "Itemsoft" >
<EntryPoint>ItemSoft.exe</EntryPoint>
<Location>.</Location>
<Version>1.0.0.0</Version>
</Application>
<Files>
<file ver= "1.0.0.0" name= "ItemSoft.exe"/>
<file ver= "1.0.0.0" name= "Reports/test.txt"/>
<file ver= "1.0.0.0" name= "Interop.grproLib.dll"/>
<file ver= "1.0.0.0" name= "REPORTS/TEST.GRF"/>
</Files>
</AutoUpdater>

Description
Description of the <description></description> procedure;
<Url></Url> Update server address for a virtual directory or site path;
<EntryPoint></EntryPoint> need to update the main program file for EXE;
<Location>.</Location> need to update the path of the main program file;
<Version>1.0.0.0</Version> Main program version number;
<Files> </Files> List of files to update; Ver: File version number, name: filename, including path (relative);

When used, create a new Web virtual directory or site on the update server, and then put the files that need to be updated on top of the updatelist.xml;
Place AutoUpdate.exe and updatelist.xml locally in the root directory of the main program. If the version number in the local updatelist.xml is less than the server, the automatic program downloads the files that need to be updated automatically.
My integrity. NET package, this update is used in the items that are in the download.
SOURCE Download:/files/jenry/autoupdate.rar
Binary file Download:/files/jenry/bin.rar
Build configuration file Updatelist.xml tool:/files/jenry/aulwriter1.0.rar (provided by Whatisgood, thanks.) ) New

Related Article

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.