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