开发者

auto upgrade for dissimilar products in a single click

I have four dissimilar products. They are:

  1. Outlook add-on product
  2. System-Tray product
  3. Standard EXE product
  4. 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?


  1. Put all your code - forms and all - into one or more dlls.
  2. 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.
  3. If there is an updated version, download it and overwrite the old dll.
  4. Dynamically load and consume the update-able dlls with Reflection.
  5. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜