I'm just starting out with WiX and I would really appreciate some advice.
I've created a WiX project which installs a couple of Windows services, but I need to set the service name, username/password and .config file xml differently, depending on the environment. The environment is set in the UI via radio buttons, i.e. ENVIRONMENT gets set to PROD, UAT or SYSTEST.
I'm now not sure how to go about making the environment related changes. Should I create a component with a condition for each environment? That would mean a lot of duplication though, maybe there's a more elegant solution? Is there anything I need to be aware of (I’ve read that the service might not uninstall if I customise the name?).
Thanks!