auto upgrade for dissimilar products in a single click
I have four dissimilar products. They are:
- Outlook add-on product
- System-Tray product
- Standard EXE product
- IE add-on product
Those products are developed in C# .NET. Those products are given as a single product to the client. I want to upgrade automatically all those products in a single click. (i.e. all the products must be upgraded to new version in a single 开发者_开发知识库click). The upgrade must be a compulsory update (i.e. it would not allow the client to run the product until he get the upgrade).
Can anybody guide me over this problem?
- Put all your code - forms and all - into one or more dlls.
- On startup - or whenever you want if you're up for the challenge - the exes will check for updates to those dlls based on the last UpdateID / dll version in a webservice call.
- If there is an updated version, download it and overwrite the old dll.
- Dynamically load and consume the update-able dlls with Reflection.
- Consider using a mutex to avoid duplication of update efforts. Name the mutex after the UpdateID.
This could be finessed to allow in-flight updating.
How about using ClickOnce
精彩评论