How to test new version of windows service without uninstalling old service
Does anyone know how to install a duplicate of a Windows service? I need to test a new version of a service that I have written, but would like to do so without uninstalling the old version of the service. If there are any problems with the new service, I will need to restart the old service as quickly as possible. I attempted re-naming the new service everywhere that I could find to rename it (from project name to assembly.cs), but it still recognized the old install and would not allow me to install a new version without uninstalling the old version.
If this is not possible, I can always just keep the old .msi handy and be prepared to re-install. It would just be convenient to be able to have them both installed and switch between them if there are any issues.
Any ideas are开发者_StackOverflow社区 appreciated.
You should install the service from different folders and register it with different name in SCM.
the consuming applications should have a setting in config or web.config or wherever where you can set the name of the testing or productive service.
精彩评论