I need help with a windows service
I am making a windows service with setup project where I have 4 parameters that I enter when installing the service which are server, database, username and password, this creates a user.config file where these values are saved and I want to read them in my service but the service reads the app.setings file, how can I read these parameters that I set when installing the service? and I am using properties.settings
3 Replies
but you can also read any file, right? if you do that, parsing 4 lines will be less complicated than using settings
yeah I can read any file but, I want to pass the values that I set on the installer to my service
but if you are writing settings in user.config then shouldn't you parse user.config
is this setup project yours?