PDA

Click to See Complete Forum and Search --> : Best Way to do this....


308holes
Sep 3rd, 2002, 06:01 PM
Ok i want to add a update Program feature to my program so it will connect to my server and check for an update what is the easyet way to do this and to install the update?????

Nigh™aŽe
Sep 4th, 2002, 07:06 AM
Create an webserver that responses to the client if an update is available or not,

Else use sockets.
Create a listener on your server, and let the client connect to see if new updates are available.

For the socket sollution, just check the MultiSocket provided with Visaul Studio .NET
It also shows how you can thread the incomming checks.

The example is exactly what you need i think.

The client connects to server, send data string and waits for response, then disconnect.

Let your client send an update command to the server, and let the server reply a simple result like the url where the client can download the update, or just send the update trough the open socket.

For more info mail me or send me icq message
(dont mail to admin@nightmare-products.com < web & mailserver are currently down)

marcg
Sep 9th, 2002, 03:54 AM
OK,

I see what you're saying and it's all logical. I have 2 additional questions:

(1) do you have an example on how to "send the update through the open socket"?

(2) how do you package the application so it can be downloaded and upgraded in this way -- and can the update be done fully automatic without interaction with the user?

Thanks and regards.