Upgrade a Windows Service without Uninstalling

后端 未结 6 832
抹茶落季
抹茶落季 2020-12-04 18:08

Currently I have to uninstall the old version of my service before I install the new version. I am pretty sure this has something to do with it not being smart enough to upd

6条回答
  •  有刺的猬
    2020-12-04 18:23

    You can make separate DLL which service would load and call every time it does its work. Make sure that service unloads DLL after use.

    Use should load it into separate Application Domain.

    SO http://msdn.microsoft.com/en-us/library/c5b8a8f9.aspx

提交回复
热议问题