I am trying to set a pre-installed service\'s startup type to Automatic, using WiX. Another task was to start the service on install, which I achieved with:
Solved by editing the registry via RegistryKey, see example:
Note service may appear as Automatic (Delayed Start) in Services GUI. However, after restarting, Services GUI displayed the service startup type as Automatic.