How does one stop a Windows service to do an upgrade install?

前端 未结 4 1020
时光说笑
时光说笑 2021-01-19 10:28

I have developed a Windows service along with a setup project using Visual Studio 2008. When I do an upgrade install I get the following warning:

The following appli

4条回答
  •  粉色の甜心
    2021-01-19 10:53

    In WIX, I was able to get the service to shutdown before upgrade and uninstall by adding a "ServiceControl" element to stop the service on install. This seems to do the job, but everything related to MSI is close to black magic, so I am certainly open to any comments. Below is what my service component is defined as:

      
        
        
        
        
        
        
        
        
        
        
        
        
        
        
      
    

提交回复
热议问题