Installing exe to multiple machines

jccorner

Well-known member
Joined
Jan 31, 2004
Messages
144
Maybe this has been asked before, but I was unable to find using the search.

We created an application and installed onto twenty pcs. We make changes to the program about every two weeks. So that means every two weeks, we have to put the exe in the public directory and copy and paste the new exe onto every pc individually. Im hoping to see how others have solved this issue. We were thinking about using a windows schedular to copy and paste the executable every time someone logged into the network, but dont have much experience in this department. Thank you for your suggestions.
 
Couldnt you have the user desktop shortcut pointing to the network. That way all you have to do is update the one exe.

You would still need to install the original application to the computer and just change the shortcut.

Hope this gives you some food for thought.
 
But wouldnt that consist of including all the dlls and wouldnt the framework have to be installed on the network as well?? Thanks for the reply.
 
The framework would have to be installed on the computer running the EXE, not on the network. The dlls could probably be installed on the network.

I believe, however, that if you run a .Net app over a network the framework restricts the security (file i/o, registry, etc.).
 
I could be wrong, and I sure someone here will point it out if this is the case. But if you install the program firstly onto the computer and change the shortcut to the exe (network). Then you dont need to install the framework / dlls on the network.

Marble Eater explains it better than I did.
 
Last edited by a moderator:
Ive actually written my own self-updater program.

Its basically a very small program that queries an XML file on a web server for the "current" version of the program, and if it is newer than the currently installed version, will download the updated files and install them, before executing the newly updated file.

Its not a trivial undertaking, but its not rocket science!

B.
 
penfold69 said:
Ive actually written my own self-updater program.

Its basically a very small program that queries an XML file on a web server for the "current" version of the program, and if it is newer than the currently installed version, will download the updated files and install them, before executing the newly updated file.

Its not a trivial undertaking, but its not rocket science!

B.

penfold,

do you manually update the xml file or is it done automatically?? Sounds like an interesting proposition. Only problem I can see with that angle is that if someone is already in the program they wont get the update until the log off other than for checking the date of the xml file every time the user starts the app. Appreciate the replies. Everyone was alot of help.
 
Question, if I choose to run the app from the server, do I have to run the install on the server itself?? Thank you for the help once again.
 
I recommend you install the software on the individual computers and then use an auto updater component such as the .Net updater component or the Sharp AutoUpdater. These components will take care of the XML file, restarting your program after the update and a variety of other things from security concerns, to install on demand in some cases. Plus, you wont run the risk of inevitable security violations, as marble_eater alluded to, and potential registry/config issues (if you are using the registry for example). If the components dont fit your specific needs, they are both open source, so you should be able to figure something out. There is also some good information about the philosophy behind automatic updates on the first site I linked to.
 
Back
Top