Wix - How to install multiple windows services with one executable?

前端 未结 4 868
面向向阳花
面向向阳花 2021-02-11 04:02

I\'m trying to install multiple windows services with the same executable, but WiX doesn\'t like the same name attributes in the two file tags. I have tried changing the names o

4条回答
  •  执念已碎
    2021-02-11 04:56

    Finally found the solution. for multple services in same exe, you have to set Type="shareProcess" in ServiceInstall element and both the services will work just fine. I found this out by installing my service using "InstallUtil" and compared the registry structure. "InstallUtil" set type to ownProcess, so i changed mine in installer too and that worked like a charm.

    
    
    
        
        
        
    
        
        
        
    
      
    

提交回复
热议问题