PDA

View Full Version : Complex LAN update



rodion
12-30-2004, 03:25 PM
Hi, Sorry about my english :huh .

My app run´s over a LAN, the exe file resides only on my 'server' this means that all clients run that file from a link and only have the runtime environment archives installed (dll's,ocx...). If i want to update the whole system (server exe and then client dll's) what do I have to do having in mind that maybe clients are using the server exe file (windows will not let me replace the file if it's in use by any client) and that the close program command will only close the program running on server not client?

thanks

Adam
01-03-2005, 09:12 AM
and that the close program command will only close the program running on server not client?

The close program command should work from the client side. Are the users actually running the client from a LAN? Does the client.exe reside on the end users system locally?

Adam Kapilik

rodion
01-03-2005, 10:18 AM
The close program command should work from the client side. Are the users actually running the client from a LAN? Does the client.exe reside on the end users system locally?

Adam Kapilik

mmmm...na, thats not really the problem, I know that 'close program' works on clients but if i would do it that way, I had to call that command on all clients before updating the server exe file (so I can replace it), and thats kind of hard, i want to update the exe file on server even if it´s in use by any client and then update all clients (dll's or OCX)before they first run the application after server update.

There´s only one exe file, and it resides on server, shared in a hidden folder, client´s use a direct access to that file (they don´t have the exe file installed), I want to update server from internet and then update all clients via LAN.

Maybe i could do this: Only server will run the update program and will download dll's and exe from internet, then update program will copy those files in a shared folder on server and when my application is executed by any client they will detect a version change and copy dlls or ocx to windows system folder, so maybe they (client´s) sholdn´t run the update program.

remember that problem is the shared access to only one .exe file on server.
thanks :)
see ya
=rOdiOn=