C
C#3mo ago
Carlos

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
No description
No description
3 Replies
MutableString
MutableString3mo ago
but you can also read any file, right? if you do that, parsing 4 lines will be less complicated than using settings
Carlos
Carlos3mo ago
yeah I can read any file but, I want to pass the values that I set on the installer to my service
MutableString
MutableString3mo ago
but if you are writing settings in user.config then shouldn't you parse user.config is this setup project yours?
Want results from more Discord servers?
Add your server