65.9K
CodeProject is changing. Read more.
Home

CUpgradeApplication - Remotely Upgrade Applications

starIconstarIconstarIconstarIconemptyStarIcon

4.00/5 (9 votes)

Sep 8, 2002

viewsIcon

71501

downloadIcon

2226

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!