Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 26th, 2008, 8:41 PM   #1
Grxmites
Newbie
 
Join Date: Feb 2008
Posts: 1
Rep Power: 0 Grxmites is on a distinguished road
online updater program...

Hey whatups

this is my first post but i am wondering where should i start in making an a program where it pops up as a new update is available, or you can check if the file is already updated.

sorta like a windows update program but with my own stuff.
aka everytime a file is updated it pops out, tehres an update to this and that.


thanks
Grxmites is offline   Reply With Quote
Old Feb 26th, 2008, 9:03 PM   #2
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 550
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: online updater program...

I have not written one myself, but I suppose the first thing you need to learn is how to write a Windows Service program. You need a very solid knowlege of C or C++ to do that. If you already have a degree in computer science with a few courses in c and c++ then you might have enough background to start learning how to write a service program. This is pretty difficult stuff, so take your time to learn it well.
__________________
True Terror is to wake up one morning and discover that your high school class is running the country - Kurt Vonnegut Jr.
Ancient Dragon is offline   Reply With Quote
Old Feb 26th, 2008, 11:30 PM   #3
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,038
Rep Power: 5 lectricpharaoh will become famous soon enough
Re: online updater program...

The basic idea here is to have your software periodically check for updates. You can do this by having it be aware of its own version number, or you could instead track the most recent time an update had been applied. You could even track which updates had been applied, in the event that you have a component-based software suite, with each update being discretionary rather than mandatory.

Once your code is aware of its own version, it can connect to a site (you'll need to learn how to do this) to check that it's up-to-date, and take appropriate action if not. This appropriate action might be prompting the user to download and install an update, or it might silently update itself (be careful if you choose the latter- many users are bothered by this sort of thing).

With all that, there are two main methods to handle the updating. The first is to check when the software starts up. This is the simplest method, especially if the software is regularly started and stopped. The second is to follow Ancient Dragon's suggestion of using a Windows service, though I think it's probably overkill for your purposes. A service-based updater is more suitable if you have critical software that needs to check at fixed intervals, whether or not the user restarts the software. Either way, you don't need C or C++ for a Windows service. You can also use any .NET language, like C#, to do it much easier. Here is one of many results I found on MSDN; one of the sample projects is a Windows service in C#. Of course, what language you pick really will depend on what you're comfortable with.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Feb 26th, 2008, 11:31 PM   #4
hervens48
Programmer
 
Join Date: Apr 2006
Location: Montreal, Canada
Posts: 95
Rep Power: 3 hervens48 is on a distinguished road
Send a message via AIM to hervens48 Send a message via MSN to hervens48
Re: online updater program...

You might also want to check out AutoIt.
Its a simple scripting language that allows you to do some real neat stuff, especially when it comes to automating tasks.

www.autoitscript.com
__________________
...
hervens48 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hello, I'd like to write a program for my work. blake_jl Community Introductions 13 Nov 23rd, 2007 4:31 PM
program resulting in an executable. sagedavis C++ 30 Jan 31st, 2007 3:06 PM
Language display in program Prm753 C++ 3 May 30th, 2006 5:45 PM
programmer needed for online program many opertunities await wedgiedays Paid Job Offers 9 Feb 1st, 2006 5:43 PM
Creating a program to test a program sixstringartist C 8 Jan 21st, 2006 1:15 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:16 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC