I have a very unique requirement for one of our projects.
In the installer, the user can select the type of database he wants to install. The possible options are:
2. MS SQL
The project also contains a service. What we want is if the user selects SQLite3 in one of the dialogs, the service should be installed to run under LocalSystem account. But if the user selects MS SQL, he'll provide the credentials for it (username and password) and the same credentials should be used to run the service now.
So, is there a way I can conditionally set how to run the service (LocalSystem account or user account) based on the user input?