I use WIX for installing an application & a service,
If I install the service for the first time, I want it to be "disabled" and that works fine by setting the field Start="disabled" in the serviceInstall element.
If I install (upgrade) the service while it is already installed on the computer and is set to "Automatic", I want the service to be "Automatic" after the upgrade too, and I can't get this behaviour, The service is upgraded and set as "disabled".
I tried to do this by using 2 serviceInstall element, in one of them Start="disabled" and in the other Start="Auto".
I added a condition to each of my serviceInstall that asks if the service is installed already.
I guess my conditions are not good....
What is the best way for this?
Thanks a lot