Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

CUpgradeApplication - Remotely Upgrade Applications

0.00/5 (No votes)
7 Sep 2002 1  
How to remotely upgrade applications from a web server with just two lines of code! Does not use MFC.

Screenshot

Introduction

CUpgradeApplication is a C++ class that can check a remote web server and detect if the version on the server is newer than the one running. If that is the case then the class will download the newer version and upgrade the older version. Oh and this version does not need MFC. Which is a good thing!

What Do I Get With This?

Huh? See the above section. That is what you get!

But You Said Two Lines Of Code!?! (AKA: How Can I Use It?)

It's as simple as this:

CUpgradeApplication * UpgradeApp = new CUpgradeApplication;
UpgradeApp->UpgradeViaWeb ("My Application", 
                           "http://myserver.com/myapplication", 
                           "myapp_version.dat", 
                           CURRENT_VERSION);

The myapp_version.dat would contain something like this:

---- Start Of File ----
Title: "<title>"
Version: "<version>"
Filename: "<filename>"
----  End Of File  ----

The system is very simple and self-explanatory so have a quick look through at the source to get an indepth understanding!

Ok - That's Simple Enough; Anything Else

This is the usual nonsense - should you want to use it!

  1. EMail me for permission to use/include (always given). I just want to know what purpose it is being used for. It is provided completely for "Non-Commercial Usage."
  2. Include the files in your C++ project.
  3. Compile!
  4. Play!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here