Reputation: 481
How to make a simple auto-updating client (windows service)? Note: Am using .NET 2.0 client and .NET 4.0 IIS web server.
I thought that I would have a main startup .exe (Step 1 and 1.5) and a separate class (DLL) to be called after the update process for the rest of the work so the 'worker' DLL could be overwritten in the update procedure.
Is this the best way to make an auto-update client? All steps below are run at every timer interval and at at windows service / program startup.
Other Notes:
a. Client is only upgraded if that installation has a web server setting allowing them to receive updates, and their app version needs an update (compare version #'s).
b. Everything is over SSL.
c. I will secure the entire web service in addition to requiring a security token per web method (security token expires after 60 minutes or less).
d. The client config file is strongly encrypted (login creds to entire web service and for the specific installation)
e. I probably should download a MD5 sum of the app update binary file to ensure I have the correct file to install. Does .NET implement MD5 in a standard way for Windows and on Mono framework for a Mac?
f. This custom program is not freely available on the web but only for some clients.
Upvotes: 0
Views: 1658
Reputation: 56697
Is there a problem using ClickOnce? It is built into the .NET Framework and can be configured from Visual Studio.
Upvotes: 2