?
Solved

Need to locate licenced/shareware/freeware code/component for adding Autoupdate feature to an exe and and unmanaged dll

Posted on 2004-11-24
4
Medium Priority
?
197 Views
Last Modified: 2010-04-01
I have an application which is a pair of an unmanaged ActiveX dll and an exe that get installed on client/user machines.

I need to add an autoupdate functionality to my dll/exe combo, so that they can constantly ping the server and autoupdate themselves (like toolbars do), when a new update arrives on server.

Is there any existing freeware/shareware/licensed codebase or component which can enable this functionality in my application. It could be in form of a code which can be embedded in existing dll/exe or could be shipped as a third component with my application (adding new components is not a problem).

Please guide me to any source which can enable this functionality, without much time spent on coding.
0
Comment
Question by:swapnil001
  • 2
  • 2
4 Comments
 
LVL 86

Assisted Solution

by:jkr
jkr earned 1600 total points
ID: 12667581
Check out http://www.codeproject.com/cpp/updatecheck.asp ("Simple update check function") and http://www.codeproject.com/internet/siv_version.asp ("S.I.V. : Simple program version checking")
0
 

Author Comment

by:swapnil001
ID: 12669805
just to reiterate:

Check server at specified intervals, read version# from text file, if the version number is newer than the last downloaded/executed version #.. then download the new specified .exe and replace the previous one. similarly,download new dll, unregisters the existing dll, and registers the new dll. The functionality has to be silent (e.g. do not open a web page, simply post/get the data to our server without the user seeing it).

jkr, thanks for your reply. on cursory glance, the "Simple Update Check" states a limitatin as"No automatic download is offered, the user has to download the files from your site and copy/install them". Also "S.I.V" does not work as a silent background thing. I'm not a C++ coder, but need to add this functionality to ActiveX, so would prefer to choose a third party component that can do the work for me. Any sugegstions?
0
 
LVL 86

Accepted Solution

by:
jkr earned 1600 total points
ID: 12669942
>>"No automatic download is offered, the user has to download the files from your site and copy/install them"

That's not a big deal, you could do that by using

URLDownloadToFile(NULL, "http://www.myserver.com/path/newfile.dll", "c:\\temp\\newfile.dll", 0, NULL);

Then launch a little helper to do the copying, terminate your app and have the helper relaunch it.
0
 

Author Comment

by:swapnil001
ID: 12685643
Begin completely new to the world of CPP programming, could you give me some idea about how to go about the launching a helper?

i did get some code snippets to help me out on registering/deregistering COM at http://www.codeguru.com/Cpp/COM-Tech/activex/com/article.php/c2675/

If i understand correctly: , the current dll/exe will ping the server for update, download new dll/exe and launch a helper. the helper then deregister old dll, copy new one and register a new one. Right? Can you guide me to a source which helps me understand the launching of such helper programs from C++ code?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question