How to create an automatic updater for an application using .net

Most of the automatic updaters require a FTP connection to pull the updates from the server and push it to the clients. Sometimes this FTP might create some security threats for the server and the organisation as a whole. In this article, we are going to see an alternative way of creating an automatic updater just by using a database.

Before getting started

This architecture contains the main application, updater application, and any database.


Registration is required to view the full article. 



Step 1

Fetch the current version of the application installed in the system. The code snippet for retrieving the version is given below:


var versionInfo = FileVersionInfo.GetVersionInfo(pathToExe);

string version = versionInfo.ProductVersion;


Step 2

Retrieve the latest version number from the database and compare it with the installed version. If the database version number is the higher in comparison then proceed to open the automatic updater and close the main application. The code snippet is given below:

Please login or register to access the full article.



You may also like

Please complete the below form and a member of the Velocity IT team will call you back.