SharpUpdater is a bootstrap loader for adding automatic update capability to your windows desktop applicatons based on .NET framework.It is also a solution which provides a sample server
program and a set of APIs for developers to extend from version 2.0+.
1.How it works
Updater.exe download the latest release list config file from server,compare with the local release list, if local version out-of-date, the differential files downloaded from the server, and coverage to the local, and then start the
2.The Service Side Configuration
1, Create a new IIS site.
2, Disable * dll handles mapping to allow dll file to download.
3, On this site to create a desktop program subdirectory, such as /demo/.
3.The Client Configuration
1,Include or reference SharpUpdater.Util.dll / Updater.exe. If you need a zip formated update package , also need to include ICSharpcode.SharpZipLib.dll / CnSharp.ZipUtil.dll
2,Add interoperability code to main program entrance for updater
private static void Main(string args)
if (args.Length == 0)
4.Package and Release
SharpPack is a VS2010 extension used to generate WinForm program and release list
Right-click the WinForm project, select Package and Publish command
Edit version numbers of project
Choose release files and fill the fields of Release List
2,Upload ReleaseList.xml and folder '184.108.40.206' generated under bin/ directory to the server ~/Demo/ directory
i) Extension for Updater
In the SharpUpdater source code，we did not implement this interface, see CnSharp.Windows.Updater/Common.cs/Ln.14。Therefore, by default only show the update log of the current version; assume that the user upgrade from V1.0 to
V1.4, you can only see V1.4 update log, can not see V1.1 ~ V1.3 . Developers can implement it own.
2,SharpUpdater source code based on MIT lisence，you can modify it freely.
ii) Extension for SharpPack
1,Base Class: CnSharp.Windows.Updater.SharpPack.Connect
This class provides a group of protected virtual methods to override.You can custom your own UI or actions.
This interface helps you check out the AssemblyInfo.cs to modify version number.Default implement is for TFS,you can implement it for other source control tools,such as SVN.