Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 105,416 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,860 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Auto update of program (Downloading from web)

 
Reply to this topicStart new topic

Auto update of program (Downloading from web)

Dumpen
post 30 Jun, 2008 - 07:35 AM
Post #1


New D.I.C Head

*
Joined: 21 Mar, 2008
Posts: 36

Hello.

I have been creating a application that checks the application version and sees if it fits with the version from http://msbeditor.dumpen.dk/versioninfo.html

If it doesnt I use a webBrowser component to open a download link to http://msbeditor.dumpen.dk/msbEditor.rar

But this is not very practical because, the ones using my application have to download all files even though some of the files are not changed..

So I wanted to ask if you have an idea on how to make a auto updater in C#?

I was thinking of something like:
Check the application version with the online version (Allready done)
If it doesnt fit, then match all the files (last changed or file size or similar) in the rar file (from msbeditor.dumpen.dk) with the files in the application folder
If they are changed then download the changed files

Any ideas?
User is offlineProfile CardPM

Go to the top of the page


nbarten
post 30 Jun, 2008 - 02:09 PM
Post #2


D.I.C Head

**
Joined: 30 Apr, 2007
Posts: 109



Thanked 1 times
My Contributions


well that's a problem... because the file size isn't a valid proof.

I mean, you can change your assembly while the size can be the same.

Maybe you should make a file where the information is located which files were changed each new version. The updater then has only to download and check that file (which is very small) and can then check if theres a newer version and which files should be downloaded.

Never tried it myself, just an idea. wink2.gif
User is offlineProfile CardPM

Go to the top of the page

Dumpen
post 1 Jul, 2008 - 03:12 AM
Post #3


New D.I.C Head

*
Joined: 21 Mar, 2008
Posts: 36

QUOTE(nbarten @ 30 Jun, 2008 - 02:09 PM) *

well that's a problem... because the file size isn't a valid proof.

I mean, you can change your assembly while the size can be the same.

Maybe you should make a file where the information is located which files were changed each new version. The updater then has only to download and check that file (which is very small) and can then check if theres a newer version and which files should be downloaded.

Never tried it myself, just an idea. wink2.gif


That seems like a good idea
User is offlineProfile CardPM

Go to the top of the page

baavgai
post 1 Jul, 2008 - 04:53 AM
Post #4


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,466



Thanked 38 times

Dream Kudos: 325

Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua

My Contributions


I've actually written these before. You should know that as of VS 2005, there are auto deployment options that essentially do this for you.

As suggested, have a "manifest" file with a list of files that pertain to the application. Rather than flagging what has changed, put a version number or timestamp for each file in your manifest as well. Have the application keep a copy of the manifest it last used. This will allow someone who missed an update to still sync up properly. If you think about it, what has changed is subjective to the client.
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/20/08 06:07AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month