Click here to Skip to main content
13,096,157 members (52,163 online)
Rate this:
Please Sign up or sign in to vote.
Hi everyone! It is possible to have a Windows Forms application check for updates to the files if the updates are stored on a server and if so, automatically synchronize with the updates by downloading the newest versions? If so, is this a recommended method to deploy updates or should it be conventional of just deploying updates via InstallShield Deployments?
Posted 6-Nov-12 6:26am
Are you doing this for deployment of detecting of deployments from a client side? These are two opposite things. Describe the scenario. Do you mean that this is the deployment of software to be installed/upgraded on the client side?
joshrduncan2012 6-Nov-12 13:45pm
Hopefully I can clarify what I'm referring to.

First of all, the major upgrade is deployed and installed (Version 1.0, 2.0, 3.0, etc).
Second of all, we want to be able to send the .sdf files (or updates to .dll files) to a server for the windows application to detect it via synchronization.
Next, if the application finds updates, it downloads it automatically to that install location.
Finally, the application will detect the updates and use them accordingly without the client knowing what was downloaded and updated.

I hope this makes sense.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Of course this is possible, but you should understand that the Web is pure client-server, so it won't give you any notification unless you program the deployment process this way, only if you can access the programming of this process. That said, if you want to download newer versions from the site you are not supporting, you will need to poll data from time to time. To do it, you can use the class System.Net.HttpWebRequest and get the news in System.Net.HttpWebResponse:[^],[^].

Please see my past answers:
How to get the data from another site[^],
get specific data from web page[^].

See also:[^].

If the Web development on the site used for deployment is accessible to you, you can do a bit better and develop some subscription-based system (see also[^]).

The most natural way of doing this in a Web application would be implementing of the user membership system and authentication. The user account data can store the recent status of the user's updates and track it. When a user is authenticated, you can compare this data with latest software status and inform the user: "nothing new" or "{0} updates are available", something like that. On the client side, the client code can automatically check it up, using the approach I described above.

joshrduncan2012 6-Nov-12 13:53pm
Thanks Sergey!
My pleasure.
Good luck, call again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100